libfdt: fdt_path_offset_namelen: Reject empty paths am: d10c84c4bc
am: 9f4834b735
am: e0440b0907
am: 13d00fad64
am: 7799b9fb26
am: 98ab028002
am: 0a053dfe49
am: 1716041baa
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/dtc/+/20024811 Change-Id: I1f22a72e99cd2a3179effcdd5111d86406099372 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
559d8068c4
1 changed files with 3 additions and 0 deletions
|
@ -255,6 +255,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