aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-31 22:24:31 +1030
committerAlan Modra <amodra@gmail.com>2019-12-31 23:30:21 +1030
commitbf31e6044082986689e17af54e2ca3cc1ac8419b (patch)
tree37c4b17ab773a456d5d16f64b6b1a76b814d74a3 /bfd/ChangeLog
parent930be6676412ab9a13ae7614ba57fb7e86a1ce72 (diff)
downloadgdb-bf31e6044082986689e17af54e2ca3cc1ac8419b.zip
gdb-bf31e6044082986689e17af54e2ca3cc1ac8419b.tar.gz
gdb-bf31e6044082986689e17af54e2ca3cc1ac8419b.tar.bz2
asan: alpha-vms: Heap-buffer-overflow
This fixes yet more errors in the alpha-vms buffer size checks. * vms-alpha.c (_bfd_vms_slurp_eisd): Don't overflow when checking offset. Don't overflow when checking rec_size, and do allow rec_size to the end of the buffer. Ensure eisd->type can be accessed, not just the first 32 bytes. Don't call _bfd_vms_save_counted_string with zero length remaining. Fail on empty string section name. (_bfd_vms_slurp_egsd): Formatting. Catch more reads past end of record size. Correct remaining length calculation. Fail on empty string section name. Consolidate error paths.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 02e3cab..003f013 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2019-12-31 Alan Modra <amodra@gmail.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eisd): Don't overflow when checking
+ offset. Don't overflow when checking rec_size, and do allow
+ rec_size to the end of the buffer. Ensure eisd->type can be
+ accessed, not just the first 32 bytes. Don't call
+ _bfd_vms_save_counted_string with zero length remaining. Fail
+ on empty string section name.
+ (_bfd_vms_slurp_egsd): Formatting. Catch more reads past end
+ of record size. Correct remaining length calculation. Fail
+ on empty string section name. Consolidate error paths.
+
2019-12-30 Alan Modra <amodra@gmail.com>
* vms-alpha.c (alpha_vms_free_private): New function, extracted..