linux-user: Fix erroneous conversion in copy_file_range
commit0fa259dd7986d152294f31a6483272a4cb627b6d
authorGiuseppe Musacchio <thatlemon@gmail.com>
Mon, 3 May 2021 17:41:59 +0000 (3 19:41 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 18 May 2021 05:09:58 +0000 (18 07:09 +0200)
tree216a407cf9e3455b1228bbda561d4f4e63720054
parentdb3221454d6b242c248cc4c33c60b9016e153516
linux-user: Fix erroneous conversion in copy_file_range

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 <thatlemon@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210503174159.54302-3-thatlemon@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c