aboutsummaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-05-09 14:08:09 +0930
committerAlan Modra <amodra@gmail.com>2018-05-09 14:14:10 +0930
commitb4560c7d159f598c82a64b214e30fd00d88aa1fb (patch)
tree57d248ae6339dbce833f246ac658af106160f801 /bfd/peXXigen.c
parent53db9cf9fc363fd8ab3a9d97cdcb2ea1f639a243 (diff)
downloadgdb-b4560c7d159f598c82a64b214e30fd00d88aa1fb.zip
gdb-b4560c7d159f598c82a64b214e30fd00d88aa1fb.tar.gz
gdb-b4560c7d159f598c82a64b214e30fd00d88aa1fb.tar.bz2
PR23148, Heap buffer overflow in pe_print_edata
PR 23148 * peXXigen.c (pe_print_edata): Correct minimum size.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r--bfd/peXXigen.c2
1 files changed, 1 insertions, 1 deletions
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 */