Skip to content
Commit effb06e3 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

boot: Add overflow-safe 32 and 16-bit add functions



To facility better checking for integer overflow, add these two
functions to add while checking for overflow.  If the result overflows,
they will return an error, instead of performing the addition.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent c7fe3b06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment