[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22239] invalid memory read in display_debug_frames (dwarf.
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/22239] invalid memory read in display_debug_frames (dwarf.c) |
Date: |
Thu, 05 Oct 2017 07:17:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22239
--- Comment #2 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=9c0f3d3f2017829ffd908c9893b85094985c3b58
commit 9c0f3d3f2017829ffd908c9893b85094985c3b58
Author: Alan Modra <address@hidden>
Date: Thu Oct 5 17:32:18 2017 +1030
PR22239 - invalid memory read in display_debug_frames
Pointer comparisons have traps for the unwary. After adding a large
unknown value to "start", the test "start < end" depends on where
"start" is originally in memory.
PR 22239
* dwarf.c (read_cie): Don't compare "start" and "end" pointers
after adding a possibly wild length to "start", compare the length
to the difference of the pointers instead. Remove now redundant
"negative" length test.
--
You are receiving this mail because:
You are on the CC list for the bug.