PR26011, excessive memory allocation with fuzzed reloc sections
[deliverable/binutils-gdb.git] / bfd / netbsd-core.c
index ae88fd6f74165017b92186e2e45f79a1ee6e0885..83ad33060fc46f1dbd2dd566066a2572d90b78de 100644 (file)
@@ -51,7 +51,7 @@ struct netbsd_core_struct
 
 /* Handle NetBSD-style core dump file.  */
 
-static const bfd_target *
+static bfd_cleanup
 netbsd_core_file_p (bfd *abfd)
 {
   int val;
@@ -222,7 +222,7 @@ netbsd_core_file_p (bfd *abfd)
     }
 
   /* OK, we believe you.  You're a core file (sure, sure).  */
-  return abfd->xvec;
+  return _bfd_no_cleanup;
 
  punt:
   bfd_release (abfd, abfd->tdata.any);
This page took 0.024912 seconds and 4 git commands to generate.