From: Alan Modra Date: Wed, 9 May 2018 04:38:09 +0000 (+0930) Subject: PR23148, Heap buffer overflow in pe_print_edata X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4560c7d159f598c82a64b214e30fd00d88aa1fb;p=binutils-gdb.git PR23148, Heap buffer overflow in pe_print_edata PR 23148 * peXXigen.c (pe_print_edata): Correct minimum size. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f158067af59..ecae7169792 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2018-05-09 Alan Modra + + PR 23148 + * peXXigen.c (pe_print_edata): Correct minimum size. + 2018-05-09 Alan Modra PR 23147 diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index b32cc18681d..598f2ca3ac8 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1671,7 +1671,7 @@ pe_print_edata (bfd * abfd, void * vfile) } /* PR 17512: Handle corrupt PE binaries. */ - if (datasize < 36) + if (datasize < 40) { fprintf (file, /* xgettext:c-format */