Re: [PATCH] lib: libfdt: fdt_region: avoid NULL pointer access

2020-07-02 Thread Simon Glass
On Thu, 2 Jul 2020 at 11:31, Philippe Reynes wrote: > > 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

[PATCH] lib: libfdt: fdt_region: avoid NULL pointer access

2020-07-02 Thread Philippe Reynes
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.