commit | 8a49c2238963efa34544be00d3e2daffdf9b2148 | [log] [tgz] |
---|---|---|
author | Philippe Reynes <philippe.reynes@softathome.com> | Thu Jul 02 19:31:29 2020 +0200 |
committer | Simon Glass <sjg@chromium.org> | Sat Jul 25 14:46:57 2020 -0600 |
tree | 667c2f2898756693ec318c46b76b8a76da188f91 | |
parent | 2870c1c3b526a1d4b4cb04488aa0fc950c3397a1 [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>