[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22209] invalid memory read in find_abstract_instance_name
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/22209] invalid memory read in find_abstract_instance_name |
Date: |
Tue, 26 Sep 2017 12:49:38 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22209
--- 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=1b86808a86077722ee4f42ff97f836b12420bb2a
commit 1b86808a86077722ee4f42ff97f836b12420bb2a
Author: Alan Modra <address@hidden>
Date: Tue Sep 26 21:47:24 2017 +0930
PR22209, invalid memory read in find_abstract_instance_name
This patch adds bounds checking for DW_FORM_ref_addr die refs, and
calculates them relative to the first .debug_info section. See the
big comment for why calculating relative to the current .debug_info
section was wrong for relocatable object files.
PR 22209
* dwarf2.c (struct comp_unit): Delete sec_info_ptr field.
(find_abstract_instance_name): Calculate DW_FORM_ref_addr relative
to stash->info_ptr_memory, and check die_ref is within that memory.
Set info_ptr_end correctly when another CU is refd. Check die_ref
for DW_FORM_ref4 etc. is within CU.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22209] New: invalid memory read in _bfd_safe_read_leb128 (libbfd.c), ago at gentoo dot org, 2017/09/26
- [Bug binutils/22209] invalid memory read in _bfd_safe_read_leb128 (libbfd.c), ago at gentoo dot org, 2017/09/26
- [Bug binutils/22209] invalid memory read in _bfd_safe_read_leb128 (libbfd.c), ago at gentoo dot org, 2017/09/26
- [Bug binutils/22209] invalid memory read in _bfd_safe_read_leb128 (libbfd.c), amodra at gmail dot com, 2017/09/26
- [Bug binutils/22209] invalid memory read in find_abstract_instance_name, amodra at gmail dot com, 2017/09/26
- [Bug binutils/22209] invalid memory read in find_abstract_instance_name,
cvs-commit at gcc dot gnu.org <=
- [Bug binutils/22209] invalid memory read in find_abstract_instance_name, amodra at gmail dot com, 2017/09/26