diff options
author | Nathan Sidwell <nathan@acm.org> | 2019-01-25 17:16:53 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2019-01-25 17:16:53 +0000 |
commit | 4bfcd1393834660ceb25507652c691d91d5a1c1a (patch) | |
tree | 347e6115b8cde6924c2befe45574835d5ea08a20 /libbacktrace | |
parent | c590597c45948c6e6fa282878198fd226da95998 (diff) | |
download | gcc-4bfcd1393834660ceb25507652c691d91d5a1c1a.zip gcc-4bfcd1393834660ceb25507652c691d91d5a1c1a.tar.gz gcc-4bfcd1393834660ceb25507652c691d91d5a1c1a.tar.bz2 |
[backtrace] Avoid segfault
https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01521.html
* elf.c (elf_add): Pass "" filename to recursive call with
separated debug.
From-SVN: r268275
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 5 | ||||
-rw-r--r-- | libbacktrace/elf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 55ccd62..b26b781 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2019-01-25 Nathan Sidwell <nathan@acm.org> + + * elf.c (elf_add): Pass "" filename to recursive call with + separated debug. + 2019-01-25 Tom de Vries <tdevries@suse.de> * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index 632477f..6fee865 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -3041,7 +3041,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor, if (debugaltlink_view_valid) backtrace_release_view (state, &debugaltlink_view, error_callback, data); - ret = elf_add (state, NULL, d, base_address, error_callback, data, + ret = elf_add (state, "", d, base_address, error_callback, data, fileline_fn, found_sym, found_dwarf, NULL, 0, 1, NULL, 0); if (ret < 0) |