Re: [PATCH 2/2] linux-user: Fix erroneous conversion in copy_file_range

2021-05-03 Thread Laurent Vivier
Le 03/05/2021 à 19:41, LemonBoy a écrit : > From: Giuseppe Musacchio > > The implicit cast from abi_long to size_t may introduce an intermediate > unwanted sign-extension of the value for 32bit targets running on 64bit > hosts. > > Signed-off-by: Giuseppe Musacchio > --- > linux-user/syscall.c

[PATCH 2/2] linux-user: Fix erroneous conversion in copy_file_range

2021-05-03 Thread LemonBoy
From: Giuseppe Musacchio The implicit cast from abi_long to size_t may introduce an intermediate unwanted sign-extension of the value for 32bit targets running on 64bit hosts. Signed-off-by: Giuseppe Musacchio --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di