Skip to content
Commit 4c56eb6f authored by Ilya Tagunov's avatar Ilya Tagunov Committed by Fabio Baltieri
Browse files

posix: clock: fix potential int32_t overflow in __z_clock_nanosleep



As k_sleep returns int32_t, there is a possibility for integer overflow
during conversion from milliseconds to nanoseconds.

Signed-off-by: default avatarIlya Tagunov <Ilya.Tagunov@synopsys.com>
parent bf525851
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment