diff options
| author | Marek Vasut <[email protected]> | 2025-11-20 05:15:30 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-05 16:24:56 -0600 |
| commit | 717f8ded395fc0369620c3935980642fed909345 (patch) | |
| tree | 10d0494df576292c72a0b46de37a1def1e616f39 /scripts/objdiff | |
| parent | d3ddbc1cf8ed7ed3fb63620c93001e55a1f480cb (diff) | |
boot: Check noffset before use
If noffset is negative, do not pass it to fit_get_name() and then further to
libfdt, this will crash sandbox with SIGSEGV because libfdt can not handle
negative node offsets without full tree check, which U-Boot inhibits to keep
size lower.
Instead, always check noffset before use, and if the return value indicates
failure, exit right away.
Signed-off-by: Marek Vasut <[email protected]>
Acked-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
