Skip to content
Snippets Groups Projects
Commit e4ce178b authored by Alistair Francis's avatar Alistair Francis Committed by Laurent Vivier
Browse files

linux-user/syscall: Fix missing target_to_host_timespec64() check


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: default avatarAlistair Francis <alistair.francis@wdc.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <cad74fae734d2562746b94acd9c34b00081c89bf.1604432881.git.alistair.francis@wdc.com>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 36d2dbc7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment