oss fuzz 56446 DW202305-004

An local pointer initialized with
just 'stack trash'  (so no proper
initializer) was passed to
libdwarf. That is a mistake in the test code.
C cannot determine if a non-null value is a legitimate
value as a pointer.
Not a library bug.
	modified:   fuzz/fuzz_dnames.c
This commit is contained in:
David Anderson
2023-05-23 10:32:29 -07:00
parent bf9c51326e
commit 6fac1021c6

View File

@@ -58,7 +58,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
dwarf_dealloc_error(dbg, error);
} else {
Dwarf_Dnames_Head dnames_h;
Dwarf_Dnames_Head dnames_h = 0;
Dwarf_Off dw_offset_of_next_table = 0;
res = dwarf_dnames_header(dbg, 0, &dnames_h, &dw_offset_of_next_table,
&error);