diff options
| author | Anton Ivanov <[email protected]> | 2026-09-02 22:23:26 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-09-04 12:22:07 -0600 |
| commit | 3158b844335a4a84a5504a813f2daa6acff5985d (patch) | |
| tree | 4d0e740ccb1e7e7f825600f34192e0df7909a2eb /contrib/apps/httpserver | |
| parent | 01460dfbda162ca9a2fddbba001edacabc38dd2f (diff) | |
spl: fit: Bound external data like U-Boot proper
fit_image_get_data() checks that the external-data region fits in the
addressable range and, for signed FITs, stays below
FIT_SIGNATURE_MAX_SIZE. The SPL loader had no equivalent check, so a
hostile data-offset or data-size could make the read offset wrap past
ULONG_MAX, or the destination range wrap around the end of the address
space.
Add the same check to load_simple_fit(), using the block-aligned read
size and the source pointer the read actually uses.
Signed-off-by: Anton Ivanov <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver')
0 files changed, 0 insertions, 0 deletions
