mirror of
https://github.com/davea42/libdwarf-code.git
synced 2025-10-19 03:03:08 +08:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user