Re: [PATCH v1 1/1] linux-user/syscall: Fix missing target_to_host_timespec64() check

2020-11-04 Thread Laurent Vivier
Le 03/11/2020 à 20:48, Alistair Francis a écrit : > Coverity pointed out (CID 1432339) that target_to_host_timespec64() can > fail with -TARGET_EFAULT but we never check the return value. This patch > checks the return value and handles the error. > > Signed-off-by: Alistair Francis > --- > linu

Re: [PATCH v1 1/1] linux-user/syscall: Fix missing target_to_host_timespec64() check

2020-11-03 Thread Philippe Mathieu-Daudé
On 11/3/20 8:48 PM, Alistair Francis wrote: > Coverity pointed out (CID 1432339) that target_to_host_timespec64() can > fail with -TARGET_EFAULT but we never check the return value. This patch > checks the return value and handles the error. > > Signed-off-by: Alistair Francis Reviewed-by: Phili

[PATCH v1 1/1] linux-user/syscall: Fix missing target_to_host_timespec64() check

2020-11-03 Thread Alistair Francis
Coverity pointed out (CID 1432339) that target_to_host_timespec64() can fail with -TARGET_EFAULT but we never check the return value. This patch checks the return value and handles the error. Signed-off-by: Alistair Francis --- linux-user/syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 de