Skip to content

Commit 047a1c2

Browse files
author
chefmax
committed
libbacktrace/
2016-03-02 Maxim Ostapenko <[email protected]> * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to avoid possible crash. (elf_add): Don't set *fileline_fn to elf_nodebug value in case of missing debug info anymore. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233911 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent 901faaa commit 047a1c2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libbacktrace/ChangeLog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2016-03-02 Maxim Ostapenko <[email protected]>
2+
3+
* elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
4+
avoid possible crash.
5+
(elf_add): Don't set *fileline_fn to elf_nodebug value in case of
6+
missing debug info anymore.
7+
18
2016-02-06 John David Anglin <[email protected]>
29

310
* mmap.c (MAP_FAILED): Define if not defined.

libbacktrace/elf.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,6 @@ elf_add (struct backtrace_state *state, int descriptor, uintptr_t base_address,
791791
{
792792
if (!backtrace_close (descriptor, error_callback, data))
793793
goto fail;
794-
*fileline_fn = elf_nodebug;
795794
return 1;
796795
}
797796

@@ -925,7 +924,7 @@ backtrace_initialize (struct backtrace_state *state, int descriptor,
925924
int ret;
926925
int found_sym;
927926
int found_dwarf;
928-
fileline elf_fileline_fn;
927+
fileline elf_fileline_fn = elf_nodebug;
929928
struct phdr_data pd;
930929

931930
ret = elf_add (state, descriptor, 0, error_callback, data, &elf_fileline_fn,

0 commit comments

Comments
 (0)