From b32479f00f6770e611f7b296a512c634c3ccfd06 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 6 Nov 2021 23:50:59 +0000 Subject: [PATCH] libdwarf: do not call internal functions (#6789) * libdwarf: do not call internal functions * libdwarf: follow upstream calls --- projects/libdwarf/fuzz_init_binary.c | 2 +- projects/libdwarf/fuzz_init_path.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/libdwarf/fuzz_init_binary.c b/projects/libdwarf/fuzz_init_binary.c index b155aa51f..6c2b75673 100644 --- a/projects/libdwarf/fuzz_init_binary.c +++ b/projects/libdwarf/fuzz_init_binary.c @@ -43,7 +43,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { Dwarf_Ptr errarg = 0; Dwarf_Handler errhand = 0; Dwarf_Error *errp = NULL; - Dwarf_Debug dbg = _dwarf_get_debug(); + Dwarf_Debug dbg = 0; my_init_fd = open(filename, O_RDONLY); if (my_init_fd != -1) { diff --git a/projects/libdwarf/fuzz_init_path.c b/projects/libdwarf/fuzz_init_path.c index 7049a2b6c..382c1879a 100644 --- a/projects/libdwarf/fuzz_init_path.c +++ b/projects/libdwarf/fuzz_init_path.c @@ -37,7 +37,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { fclose(fp); Dwarf_Ptr errarg = 0; Dwarf_Handler errhand = 0; - Dwarf_Debug dbg = _dwarf_get_debug(); + Dwarf_Debug dbg = 0; Dwarf_Error *errp = NULL; #define MACHO_PATH_LEN 2000 char macho_real_path[2000];