summaryrefslogtreecommitdiff
path: root/tools/fdtgrep.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-06-13 10:38:08 -0600
committerTom Rini <[email protected]>2026-06-13 10:42:17 -0600
commit7c290d20cd8a9f3ae1700a0707c774e9b83f7f27 (patch)
tree8a3452ce0628247f697acfa6f83fff20a0d67c2b /tools/fdtgrep.c
parent7e47c37adf53f3010a6bf151df32df04a3c9ab91 (diff)
parentf3d2ff3f5c3f49216b45a30b4b9a315a1b8d2142 (diff)
Merge branch 'assorted-fit-validation-fixes' into next
This brings in a number of FIT image validation fixes from Anton Ivanov <[email protected]> that have security implications.
Diffstat (limited to 'tools/fdtgrep.c')
-rw-r--r--tools/fdtgrep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c
index b4c041070f5..dba7240001f 100644
--- a/tools/fdtgrep.c
+++ b/tools/fdtgrep.c
@@ -355,6 +355,9 @@ static int display_fdt_by_regions(struct display_info *disp, const void *blob,
case FDT_BEGIN_NODE:
name = fdt_get_name(blob, offset, &len);
+ if (!name)
+ return len;
+
fprintf(f, "%*s%s {", depth++ * shift, "",
*name ? name : "/");
break;