This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR23148, Heap buffer overflow in pe_print_edata
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 9 May 2018 14:20:21 +0930
- Subject: PR23148, Heap buffer overflow in pe_print_edata
PR 23148
* peXXigen.c (pe_print_edata): Correct minimum size.
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 */
--
Alan Modra
Australia Development Lab, IBM