libdwarf: do not call internal functions (#6789)

* libdwarf: do not call internal functions

* libdwarf: follow upstream calls
This commit is contained in:
DavidKorczynski 2021-11-06 23:50:59 +00:00 committed by GitHub
parent 0206e7c501
commit b32479f00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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];