asan: vms-alpha: heap-buffer-overflow
authorAlan Modra <amodra@gmail.com>
Mon, 23 Dec 2019 07:36:23 +0000 (18:06 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Dec 2019 07:36:23 +0000 (18:06 +1030)
commit2c0e48e5b797de474ef2e19f4146349065833138
tree1ad1808d21261921afd1cde473bee5da21fce877
parent7936714c0c5030f872ced475f848692ce835708a
asan: vms-alpha: heap-buffer-overflow

Two buffer overflows, and some over restrictive length checks.

* vms-alpha.c (add_symbol): Add "max" parameter.  Error on string
length larger than max.
(_bfd_vms_slurp_egsd): Ensure record is at least large enough to
read string length byte, error if not.  Pass size to add_symbol.
(_bfd_vms_slurp_etir): Don't read past end of buffer when reading
type and length.  Allow read of last byte in buffer.
bfd/ChangeLog
bfd/vms-alpha.c
This page took 0.024564 seconds and 4 git commands to generate.