diff --git a/projects/binutils/fuzz_dwarf.c b/projects/binutils/fuzz_dwarf.c index bb526e27c..b7224c660 100644 --- a/projects/binutils/fuzz_dwarf.c +++ b/projects/binutils/fuzz_dwarf.c @@ -32,8 +32,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) bfd *file; file = bfd_openr (filename, NULL); if (file) { - char **matches; - if (bfd_check_format_matches (file, bfd_object, &matches)) { + if (bfd_check_format (file, bfd_object)) { load_separate_debug_files(file, bfd_get_filename(file)); } } diff --git a/projects/binutils/fuzz_ranlib_simulation.c b/projects/binutils/fuzz_ranlib_simulation.c index 0edb436c6..46504dcc6 100644 --- a/projects/binutils/fuzz_ranlib_simulation.c +++ b/projects/binutils/fuzz_ranlib_simulation.c @@ -43,7 +43,6 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) int f; bfd *arch; - char **matching; f = open (filename, O_RDWR | O_BINARY, 0); if (f < 0) { @@ -55,7 +54,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) close(f); return 0; } - if (! bfd_check_format_matches (arch, bfd_archive, &matching)) { + if (! bfd_check_format (arch, bfd_archive)) { bfd_close(arch); return 0; } diff --git a/projects/binutils/fuzz_windres.c b/projects/binutils/fuzz_windres.c index 0dfb1c158..4f6aee314 100644 --- a/projects/binutils/fuzz_windres.c +++ b/projects/binutils/fuzz_windres.c @@ -58,7 +58,7 @@ fuzz_check_coff_rsrc (const char *filename, const char *target) return 0; } - if (! bfd_check_format_matches (abfd, bfd_object, NULL)) { + if (! bfd_check_format (abfd, bfd_object)) { retval = 0; goto cleanup; }