Actions
Bug #18081
closedaddr2line.c: Wrong section for `DW_AT_ranges`
Status:
Feedback
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0dev (2021-08-16T00:07:09Z master 4cc44bd819) [x86_64-linux]
Description
When both .debug_rnglists
and .debug_ranges
sections exist, DW_AT_ranges
can refer to a wrong section, potentially causing a segmentation fault.
DW_AT_ranges
should refer to .debug_rnglists
for DWARF version 5, and .debug_ranges
for DWARF version 4 and earlier.
A patch is attached to fix this.
Note that this patch will not be cleanly applied before patches posted in #17823 and #17052.
Files
Actions
Like0
Like0