libfdt: fdt_path_offset_namelen: Reject empty paths am: d10c84c4bc
am: 9f4834b735
am: e0440b0907
am: 13d00fad64
am: 7799b9fb26
am: 1c1c6e8948
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/dtc/+/20024811 Change-Id: I16b6c6ac9326f72a336b9d44519b89dc6bfe7787 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
ffd484022b
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen)
|
|||
|
||||
FDT_RO_PROBE(fdt);
|
||||
|
||||
if (namelen < 1)
|
||||
return -FDT_ERR_BADPATH;
|
||||
|
||||
if (namelen < 1)
|
||||
return -FDT_ERR_BADPATH;
|
||||
|
||||
|
|
Loading…
Reference in a new issue