[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22047] Heap out of bounds read in parse_comp_unit()
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/22047] Heap out of bounds read in parse_comp_unit() |
Date: |
Sun, 01 Oct 2017 02:05:01 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22047
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4b04bba2eb6b646e11a2c38c77667875b3db6828
commit 4b04bba2eb6b646e11a2c38c77667875b3db6828
Author: Alan Modra <address@hidden>
Date: Sun Oct 1 12:07:59 2017 +1030
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.
--
You are receiving this mail because:
You are on the CC list for the bug.