mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-06-02 09:22:36 +02:00
68a2910bae
Due to a bug in the gold linker[1], the .eh_frame and .eh_frame_hdr sections contains garbage. When dwarf_extract_proc_info_from_fde tried to look up the begin of the CIE subsection, it would underflow the .eh_frame segment, resulting in a crash[2]. This patch avoids that crash by checking whether the CIE pointer is located after the begin of the .eh_frame section. The variable "base" was misused in various places as a boolean (decode as .debug_frame or decode as .eh_frame). These instances have been renamed to is_debug_frame where applicable. Tested on Linux x86_64. [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=17639 [2]: http://lists.nongnu.org/archive/html/libunwind-devel/2014-11/msg00009.html Signed-off-by: Peter Wu <peter@lekensteyn.nl> |
||
---|---|---|
.. | ||
Gexpr.c | ||
Gfde.c | ||
Gfind_proc_info-lsb.c | ||
Gfind_unwind_table.c | ||
global.c | ||
Gparser.c | ||
Gpe.c | ||
Gstep.c | ||
Lexpr.c | ||
Lfde.c | ||
Lfind_proc_info-lsb.c | ||
Lfind_unwind_table.c | ||
Lparser.c | ||
Lpe.c | ||
Lstep.c |