platform_external_dtc/libfdt
Pierre-Clément Tosi d10c84c4bc libfdt: fdt_path_offset_namelen: Reject empty paths
Make empty paths result in FDT_ERR_BADPATH.

Per the specification (v0.4-rc4):

> The convention for specifying a device path is:
>     /node-name-1/node-name-2/node-name-N
>
> The path to the root node is /.
>
> A unit address may be omitted if the full path to the
> node is unambiguous.

Bug: 246465319
Test: libfdt_fuzzer  # clusterfuzz/testcase-detail/4530863420604416
Change-Id: I14ab0a074ab994c1f598243d2d5795d2cd9a853a
(cherry picked from commit 3c28f3e3a1)
2022-09-23 08:16:28 +00:00
..
acpi.c libfdt: add acpi table verification support 2018-09-20 11:46:54 +08:00
Android.bp libfdt: add acpi table verification support 2018-09-20 11:46:54 +08:00
fdt.c Fix integer wrap sanitisation. 2022-08-12 13:13:30 +00:00
fdt.h Added license header to dtc/libfdt/fdt.h and libfdt_env.h 2013-02-18 08:03:50 -06:00
fdt_addresses.c libfdt: Add helpers to read #address-cells and #size-cells 2014-05-12 16:01:09 +10:00
fdt_empty_tree.c Fix a few whitespace and style nits 2017-04-09 20:56:37 +10:00
fdt_overlay.c libfdt: overlay: Check the value of the right variable 2017-03-06 14:19:26 +11:00
fdt_ro.c libfdt: fdt_path_offset_namelen: Reject empty paths 2022-09-23 08:16:28 +00:00
fdt_rw.c Fix a few whitespace and style nits 2017-04-09 20:56:37 +10:00
fdt_strerror.c libfdt: add missing errors to fdt_strerror() 2016-11-04 07:17:20 +11:00
fdt_sw.c Add a libfdt function to write a property placeholder 2017-04-02 13:38:46 +10:00
fdt_wip.c Fix a few whitespace and style nits 2017-04-09 20:56:37 +10:00
libacpi.h libfdt: add acpi table verification support 2018-09-20 11:46:54 +08:00
libfdt.h Add a libfdt function to write a property placeholder 2017-04-02 13:38:46 +10:00
libfdt_env.h libfdt: Change names of sparse helper macros 2017-03-06 12:16:56 +11:00
libfdt_internal.h libfdt: avoid shadowing "err" in FDT_CHECK_HEADER 2014-01-25 15:11:20 +11:00
Makefile.libfdt libfdt: add acpi table verification support 2018-09-20 11:46:54 +08:00
TODO dtc: Update TODO files 2007-12-19 08:20:26 -06:00
version.lds libfdt: Add fdt_overlay_apply to the exported symbols 2016-10-11 20:08:38 +11:00