PR binutils/14289
authorAsmwarrior <asmwarrior@gmail.com>
Thu, 2 Jan 2014 14:30:18 +0000 (14:30 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 2 Jan 2014 14:30:18 +0000 (14:30 +0000)
* pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80.

bfd/ChangeLog
bfd/pef.c

index f35d03729ad3013ccb9396044ee8359518bdbfd3..59bcfb70d6dafee97706195f44d411beb4c1be75 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-02  Asmwarrior  <asmwarrior@gmail.com>
+
+       PR binutils/14289
+       * pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80.
+
 2014-01-02  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/11983
index 6c52e0f3590c28d8fadfe356b36f86adf82a14e5..4829851fcaa9f09a410232fb7e1e0088bb0a0cdc 100644 (file)
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -1,6 +1,5 @@
 /* PEF support for BFD.
-   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-   2009, 2011  Free Software Foundation, Inc.
+   Copyright 1999-2014 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -1065,11 +1064,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, sizeof buf, abfd) != sizeof buf)
     return -1;
 
   header->tag1 = bfd_getb32 (buf);
This page took 0.027582 seconds and 4 git commands to generate.