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

boot: Check overflow/bounds on image header size



Before using the image and header size fields from the image header,
verify that both of these values are sane.  In this case, sanity means
that there is no arithmetic overflow when they are added, and that the
result is within the bounds of the containing flash region.  This is
done in addition to the check of the header's magic number.

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