[PATCH] lib: libfdt: fdt_region: avoid NULL pointer access
Simon Glass
sjg at chromium.org
Fri Jul 3 05:50:36 CEST 2020
On Thu, 2 Jul 2020 at 11:31, Philippe Reynes
<philippe.reynes at softathome.com> 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 NULL, we report
> an error and avoid looking in the exclude list.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
> common/fdt_region.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list