diff options
| author | Aristo Chen <[email protected]> | 2026-06-05 15:42:51 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-17 09:53:20 -0600 |
| commit | a7ea33e3a35860326aeb5792f337bd9082d40ecf (patch) | |
| tree | 1d3874f0c6ff1fa4aabd1f953d4dedc2e7e7031f /include | |
| parent | 4956f108539135afb1afdec2b509f62291087d16 (diff) | |
test/py: test kernel_noload decompression buffer overflow
Add sandbox tests that exercise the per-image decompression buffer that
bootm_load_os() allocates for a compressed kernel_noload image
(ALIGN(image_len * 8, SZ_1M)).
The overflow test builds a FIT whose decompressed size far exceeds the
per-image buffer and asserts that 'bootm loados' rejects it with a
decompression error rather than overflowing.
The boundary test builds a FIT whose decompressed size equals the
per-image buffer exactly and asserts that 'bootm loados' succeeds,
guarding against an off-by-one rejection at the buffer limit.
Signed-off-by: Aristo Chen <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
