summaryrefslogtreecommitdiff
path: root/test/lib/string.c
diff options
context:
space:
mode:
authorAristo Chen <[email protected]>2026-07-08 10:34:49 +0000
committerTom Rini <[email protected]>2026-07-21 13:50:54 -0600
commit85667122fb5fa215315a633335efc27ecd195b21 (patch)
tree6b36c7ec817c79a4d54ac9cefe96f8eaf77e33b5 /test/lib/string.c
parent8f71d7170f5c3abadee45683e35ae6d925b6d417 (diff)
test: spl: check load_simple_fit() rejects an oversized data-size
Add a regression test that builds a FIT with external data, inflates the data-size property far beyond the image and any plausible load region, and confirms that spl_load_simple_fit() returns -EFBIG instead of reading the declared size off the device. Without the bounds check in load_simple_fit() this test overruns memory and crashes; with it the load is rejected cleanly. Signed-off-by: Aristo Chen <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test/lib/string.c')
0 files changed, 0 insertions, 0 deletions