Skip to content
Commit 332b7df6 authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

kernel: avoid implementation-defined behavior in timeout calculation



When to->dticks is an int64_t it may happen that the calculated
remaining time is a value that cannot be exactly represented in the
destination int32_t, producing an implementation-defined result which
can include a signal (interrupt).  Cap the maximum delay to the
largest value suported by the int32_t result.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 840eaab9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment