aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/peXXigen.c2
2 files changed, 6 insertions, 1 deletions
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 <amodra@gmail.com>
+ PR 23148
+ * peXXigen.c (pe_print_edata): Correct minimum size.
+
+2018-05-09 Alan Modra <amodra@gmail.com>
+
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 */