]> Git Repo - u-boot.git/commit
lib: libfdt: fdt_region: avoid NULL pointer access
authorPhilippe Reynes <[email protected]>
Thu, 2 Jul 2020 17:31:29 +0000 (19:31 +0200)
committerSimon Glass <[email protected]>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
commit2a3be302d5dd221ea64b85a700746b322e30f064
treede991ce684d35059493ae9ca5f20a94c5f1695c4
parentdf1fa4b2239aaf2e4a7b72ff1e81cfa53af8b08e
lib: libfdt: fdt_region: avoid NULL pointer access

The function fdt_find_regions look in the exclude list for each
property, even if the name is NULL. It could happen if the fit
image is corrupted. On sandbox, it generates a segfault.

To avoid this issue, if the name of a property is NULL, we report
an error and avoid looking in the exclude list.

Signed-off-by: Philippe Reynes <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
common/fdt_region.c
This page took 0.033698 seconds and 4 git commands to generate.