summaryrefslogtreecommitdiff
path: root/include/android_bootloader_message.h
diff options
context:
space:
mode:
authorAnton Ivanov <[email protected]>2026-06-02 19:30:17 +0100
committerTom Rini <[email protected]>2026-06-12 15:35:56 -0600
commit7304d569e61521e04625bfbded894f2e5fbe4409 (patch)
treee264c33b824c3152e55530527074bd557f57f1bd /include/android_bootloader_message.h
parente73328612534e81b41d0363fad9a7b4385cd3d39 (diff)
fdt_region: Check return value of fdt_get_property_by_offset() calls
fdt_get_property_by_offset() returns NULL for FDT with version less than 0x10. fdt_find_regions() dereferences the result without checking, leading to a NULL pointer dereference during signature verification of an untrusted FIT. fdt_add_alias_regions() and fdt_next_region() also lack validation. Add NULL checks before accessing the returned property pointer. Also add a missing NULL check for fdt_string() in fdt_add_alias_regions() and fdt_next_region(). Signed-off-by: Anton Ivanov <[email protected]>
Diffstat (limited to 'include/android_bootloader_message.h')
0 files changed, 0 insertions, 0 deletions