aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/ChangeLog
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2019-01-25 14:39:58 +0000
committerTom de Vries <vries@gcc.gnu.org>2019-01-25 14:39:58 +0000
commitc75795fa1dc29716f519ca6d1c8cccb67d0d2062 (patch)
tree4a320ed1ce1aa49329041a5d06027e300d24ee86 /libbacktrace/ChangeLog
parent37ab491dcee76e83ce32506632810b04a6045d5e (diff)
downloadgcc-c75795fa1dc29716f519ca6d1c8cccb67d0d2062.zip
gcc-c75795fa1dc29716f519ca6d1c8cccb67d0d2062.tar.gz
gcc-c75795fa1dc29716f519ca6d1c8cccb67d0d2062.tar.bz2
[libbacktrace] Fix strrchr segfault
Currently, when running a libbacktrace testcase t with .gnu_debuglink to t.debug, and t.debug having a .gnu_debugaltlink to t.alt.debug, a segfault is triggered when calling strrchr with a NULL string from elf_find_debugfile_by_debuglink. The NULL string originates from the elf_add called for the .gnu_debugaltlink, which uses NULL as filename argument. Fix this by using "" as filename argument instead. 2019-01-25 Tom de Vries <tdevries@suse.de> * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with filename == "". * Makefile.am (TESTS): Add btest_dwz_gnudebuglink. * Makefile.in: Regenerate. From-SVN: r268269
Diffstat (limited to 'libbacktrace/ChangeLog')
-rw-r--r--libbacktrace/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index 4a6a165..55ccd62 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -1,5 +1,12 @@
2019-01-25 Tom de Vries <tdevries@suse.de>
+ * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
+ filename == "".
+ * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
+ * Makefile.in: Regenerate.
+
+2019-01-25 Tom de Vries <tdevries@suse.de>
+
* Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
(TESTS): Rename dtest to btest_gnudebuglink.
* Makefile.in: Regenerate.