https://sourceware.org/bugzilla/show_bug.cgi?id=14289

--- Comment #2 from asmwarrior <asmwarrior at gmail dot com> ---
Is this the patch to fix this issue?

diff --git a/bfd/pef.c b/bfd/pef.c
index 6c52e0f..64925e5 100644
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -1065,11 +1065,11 @@ const bfd_target pef_vec =
 static int
 bfd_pef_xlib_read_header (bfd *abfd, bfd_pef_xlib_header *header)
 {
-  unsigned char buf[76];
+  unsigned char buf[80];

   bfd_seek (abfd, 0, SEEK_SET);

-  if (bfd_bread ((void *) buf, 76, abfd) != 76)
+  if (bfd_bread ((void *) buf, 80, abfd) != 80)
     return -1;

   header->tag1 = bfd_getb32 (buf);

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to