Fix fuzz_readelf.c compile error (#3705) (#3706)

Upstream binutils commit 978c4450511 broke this target.  What's more,
the use-after-free issue had been fixed quite some time ago.  So,
don't reference symtab_shndx_list.
This commit is contained in:
Alan Modra 2020-04-24 13:44:13 +09:30 committed by GitHub
parent d967b71245
commit a6dae35933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -50,12 +50,5 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
free (dump_ctf_strtab_name);
free (dump_ctf_parent_name);
// Unless we set this global variable to NULL, then we will run
// into a use-after-free error after a certain set of iterations.
// I have applied this patch because the authors of binutils
// prefer to think of their applications as "one-use-only" as written
// here: https://github.com/google/oss-fuzz/pull/2617
symtab_shndx_list = NULL;
return 0;
}