aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/macro.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-03-26 10:49:27 +1030
committerAlan Modra <amodra@gmail.com>2020-03-26 11:02:58 +1030
commitf75fbe8ad2e3d9b34bf1f448a6df328ff361822f (patch)
tree59a87f782ad6c3ba3af0de9bd3adfd824ac39019 /gdb/dwarf2/macro.c
parent46b438bb7369a55eefef15cd5d1afbb5c2c5742e (diff)
downloadbinutils-f75fbe8ad2e3d9b34bf1f448a6df328ff361822f.zip
binutils-f75fbe8ad2e3d9b34bf1f448a6df328ff361822f.tar.gz
binutils-f75fbe8ad2e3d9b34bf1f448a6df328ff361822f.tar.bz2
alpha-vms: Sanity check ETIR__C_CTL_DFLOC index
I doubt anyone will want to create more than 16M debug location entries. If there is no bound the object format allows for 32-bit indices and of course fuzzers find that and attempt allocation of up to a 16G byte array. The patch also fixes potential integer overflows in calculating the array size. * vms-alpha.c (dst_define_location): Limit size of dst_ptr_offsets array. (_bfd_vms_slurp_object_records): Rename "err" to "ok".
Diffstat (limited to 'gdb/dwarf2/macro.c')
0 files changed, 0 insertions, 0 deletions