diff options
author | Alan Modra <amodra@gmail.com> | 2017-10-01 12:07:59 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-10-01 12:07:59 +1030 |
commit | 4b04bba2eb6b646e11a2c38c77667875b3db6828 (patch) | |
tree | 4e03802d9cbeb7652e5f33da3969fc79d74f5ba3 /gas | |
parent | 4f1881b94473f1034f950feb863b464435a8fb5f (diff) | |
download | gdb-4b04bba2eb6b646e11a2c38c77667875b3db6828.zip gdb-4b04bba2eb6b646e11a2c38c77667875b3db6828.tar.gz gdb-4b04bba2eb6b646e11a2c38c77667875b3db6828.tar.bz2 |
PR22047, Heap out of bounds read in parse_comp_unit
Like the PR22230 fix, we can allocate a buffer with an extra byte
rather than letting bfd_simple_get_relocated_section_contents malloc
and return a buffer. Much better than allocating another buffer
afterwards.
PR 22047
* dwarf2.c (read_section): Allocate buffer with extra byte for
bfd_simple_get_relocated_section_contents rather than copying
afterwards.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions