From e3c24aa9aef41b82e5c9ecbb05c984af72125ede Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 21 Oct 2021 16:20:33 +0100 Subject: [PATCH] binutils: enable dwarf analysis in readelf fuzzer (#6628) --- projects/binutils/fuzz_readelf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/binutils/fuzz_readelf.c b/projects/binutils/fuzz_readelf.c index 9df34fda5..e615a225e 100644 --- a/projects/binutils/fuzz_readelf.c +++ b/projects/binutils/fuzz_readelf.c @@ -41,7 +41,10 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) do_arch = true; do_notes = true; - // Main fuzz entrypoint + // Enable DWARF analysis + dwarf_select_sections_all(); + + // Main fuzz entrypoint process_file(filename); unlink(filename);