This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] PR22047, Heap out of bounds read in parse_comp_unit
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sat, 30 Sep 2017 22:26:32 -0400
- Subject: [binutils-gdb] PR22047, Heap out of bounds read in parse_comp_unit
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 4b04bba2eb6b646e11a2c38c77667875b3db6828 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 4b04bba2eb6b646e11a2c38c77667875b3db6828
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.