mirror of git://gcc.gnu.org/git/gcc.git
elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to avoid possible crash.
libbacktrace/ 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com> * 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. From-SVN: r233911
This commit is contained in:
parent
171f7de552
commit
26ac52dba5
|
@ -1,3 +1,10 @@
|
||||||
|
2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2016-02-06 John David Anglin <danglin@gcc.gnu.org>
|
2016-02-06 John David Anglin <danglin@gcc.gnu.org>
|
||||||
|
|
||||||
* mmap.c (MAP_FAILED): Define if not defined.
|
* mmap.c (MAP_FAILED): Define if not defined.
|
||||||
|
|
|
@ -791,7 +791,6 @@ elf_add (struct backtrace_state *state, int descriptor, uintptr_t base_address,
|
||||||
{
|
{
|
||||||
if (!backtrace_close (descriptor, error_callback, data))
|
if (!backtrace_close (descriptor, error_callback, data))
|
||||||
goto fail;
|
goto fail;
|
||||||
*fileline_fn = elf_nodebug;
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -925,7 +924,7 @@ backtrace_initialize (struct backtrace_state *state, int descriptor,
|
||||||
int ret;
|
int ret;
|
||||||
int found_sym;
|
int found_sym;
|
||||||
int found_dwarf;
|
int found_dwarf;
|
||||||
fileline elf_fileline_fn;
|
fileline elf_fileline_fn = elf_nodebug;
|
||||||
struct phdr_data pd;
|
struct phdr_data pd;
|
||||||
|
|
||||||
ret = elf_add (state, descriptor, 0, error_callback, data, &elf_fileline_fn,
|
ret = elf_add (state, descriptor, 0, error_callback, data, &elf_fileline_fn,
|
||||||
|
|
Loading…
Reference in New Issue