platform_external_dtc/fuzzing
Pierre-Clément Tosi 3afda967bc ANDROID: fuzz: Only check valid phandles
Ignore invalid phandles from fdt_get_phandle().

Update the assert() to avoid false positives, as per the libfdt API:
```
 * fdt_node_offset_by_phandle() returns the offset of the node
 * which has the given phandle value.  If there is more than one node
 * in the tree with the given phandle (an invalid tree), results are
 * undefined.
```

Bug: 240612647
Test: SANITIZE_HOST=address m libfdt_fuzzer
Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
Change-Id: Ifbb6a25ab6bd1463afccc88f9756d34c3cf59717
2022-09-09 15:34:14 +01:00
..
Android.bp ANDROID: fuzz: Clean-up & Use <sanitizer/*.h> 2022-08-10 17:08:31 +01:00
libfdt_fuzzer.c ANDROID: fuzz: Only check valid phandles 2022-09-09 15:34:14 +01:00