From b4560c7d159f598c82a64b214e30fd00d88aa1fb Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 9 May 2018 14:08:09 +0930 Subject: [PATCH] PR23148, Heap buffer overflow in pe_print_edata PR 23148 * peXXigen.c (pe_print_edata): Correct minimum size. --- bfd/ChangeLog | 5 +++++ bfd/peXXigen.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f158067af5..ecae716979 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 b32cc18681..598f2ca3ac 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 */