ANDROID: fuzz: Rename libfdt_fuzzer.cpp to .c am: 7f68de32c6

Original change: https://android-review.googlesource.com/c/platform/external/dtc/+/2181556

Change-Id: I4345491e3f41a3b752e086f6fbd3715dfb96bd66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mike McTernan 2022-08-10 18:31:23 +00:00 committed by Automerger Merge Worker
commit b1a89b6413
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ package {
cc_fuzz { cc_fuzz {
name: "libfdt_fuzzer", name: "libfdt_fuzzer",
srcs: [ srcs: [
"libfdt_fuzzer.cpp", "libfdt_fuzzer.c",
], ],
static_libs: [ static_libs: [
"libfdt", "libfdt",

View file

@ -29,7 +29,7 @@ void walk_device_tree(const void *device_tree, int parent_node) {
// Information on device tree is available in external/dtc/Documentation/ // Information on device tree is available in external/dtc/Documentation/
// folder. // folder.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
// Non-zero return values are reserved for future use. // Non-zero return values are reserved for future use.
if (size < FDT_V17_SIZE) return 0; if (size < FDT_V17_SIZE) return 0;
@ -39,4 +39,4 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
walk_device_tree(data, root_node_offset); walk_device_tree(data, root_node_offset);
return 0; return 0;
} }