aboutsummaryrefslogtreecommitdiff
path: root/bfd/pef.c
diff options
context:
space:
mode:
authorAsmwarrior <asmwarrior@gmail.com>2014-01-02 14:30:18 +0000
committerNick Clifton <nickc@redhat.com>2014-01-02 14:30:18 +0000
commit044387affbeb9fd3d463e518dc2cb6970bbe1352 (patch)
tree9e69dbcab39a70dd916bb01d89771840e252cde9 /bfd/pef.c
parent1be5090bcaf4bcab333cf03f4157b16d33881222 (diff)
downloadfsf-binutils-gdb-044387affbeb9fd3d463e518dc2cb6970bbe1352.zip
fsf-binutils-gdb-044387affbeb9fd3d463e518dc2cb6970bbe1352.tar.gz
fsf-binutils-gdb-044387affbeb9fd3d463e518dc2cb6970bbe1352.tar.bz2
PR binutils/14289
* pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80.
Diffstat (limited to 'bfd/pef.c')
-rw-r--r--bfd/pef.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/pef.c b/bfd/pef.c
index 6c52e0f..4829851 100644
--- 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);