commit | 921b00ceb8b3767fbb72977c26ceaa102a39ab2e | [log] [tgz] |
---|---|---|
author | Philippe Reynes <philippe.reynes@softathome.com> | Thu Jul 02 19:31:29 2020 +0200 |
committer | Simon Glass <sjg@chromium.org> | Mon Jul 20 11:37:47 2020 -0600 |
tree | de991ce684d35059493ae9ca5f20a94c5f1695c4 | |
parent | 05cc53714513a2ca106757f4504885b74188b5a6 [diff] |
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 <philippe.reynes@softathome.com> Reviewed-by: Simon Glass <sjg@chromium.org>