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 f158067..ecae716 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2018-05-09 Alan Modra + PR 23148 + * peXXigen.c (pe_print_edata): Correct minimum size. + +2018-05-09 Alan Modra + PR 23147 * peXXigen.c (pe_print_idata): Bound check hint_addr. diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index b32cc18..598f2ca 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 */ -- 2.7.4