diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2025-07-10 17:43:54 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-07-10 11:55:34 -0600 |
commit | c4828cb8502d0b2adc39b9cde93df7d2886df897 (patch) | |
tree | 892917d09c4ccfa71fe93463c87a995e13bbaa42 /scripts/rust/rustc_args.py | |
parent | 6a3e132a1be8c9e649967a4eb341d00731be7f51 (diff) | |
download | qemu-c4828cb8502d0b2adc39b9cde93df7d2886df897.zip qemu-c4828cb8502d0b2adc39b9cde93df7d2886df897.tar.gz qemu-c4828cb8502d0b2adc39b9cde93df7d2886df897.tar.bz2 |
linux-user: Check for EFAULT failure in nanosleep
target_to_host_timespec() returns an error if the memory the guest
passed us isn't actually readable. We check for this everywhere
except the callsite in the TARGET_NR_nanosleep case, so this mistake
was caught by a Coverity heuristic.
Add the missing error checks to the calls that convert between the
host and target timespec structs.
Coverity: CID 1507104
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250710164355.1296648-1-peter.maydell@linaro.org>
Diffstat (limited to 'scripts/rust/rustc_args.py')
0 files changed, 0 insertions, 0 deletions