mirror of https://github.com/google/oss-fuzz.git
Issue 27734: binutils:fuzz_readelf: Abrt with empty stacktrace (#4945)
Clear static vars after freeing, to prevent a double-free on the next test iteration.
This commit is contained in:
parent
c3d69abf14
commit
9de297cc73
|
@ -47,8 +47,11 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||
unlink(filename);
|
||||
|
||||
free (dump_ctf_symtab_name);
|
||||
dump_ctf_symtab_name = NULL;
|
||||
free (dump_ctf_strtab_name);
|
||||
dump_ctf_strtab_name = NULL;
|
||||
free (dump_ctf_parent_name);
|
||||
dump_ctf_parent_name = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue