aboutsummaryrefslogtreecommitdiff
path: root/gcc
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 /gcc
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 'gcc')
0 files changed, 0 insertions, 0 deletions