diff mbox series

libbacktrace patch committed: Fix uninitialized field

Message ID CAOyqgcXY2ybxb=hzwb=chcjr4TjTPQ+RUzj7eYE9vfQqCTTMGQ@mail.gmail.com
State New
Headers show
Series libbacktrace patch committed: Fix uninitialized field | expand

Commit Message

Ian Lance Taylor Sept. 21, 2017, 6:44 p.m. UTC
I somehow failed to initialize the exe_filename field of phdr_data,
which most likely led to PR 82284.  Bootstrapped and ran libbacktrace
tests for this obvious fix.  Committed to mainline.

Ian


2017-09-21  Ian Lance Taylor  <iant@google.com>

PR go/82284
* elf.c (backtrace_initialize): Set pd.exe_filename.
diff mbox series

Patch

Index: elf.c
===================================================================
--- elf.c	(revision 253076)
+++ elf.c	(working copy)
@@ -1489,6 +1489,7 @@ 
   pd.fileline_fn = &elf_fileline_fn;
   pd.found_sym = &found_sym;
   pd.found_dwarf = &found_dwarf;
+  pd.exe_filename = filename;
   pd.exe_descriptor = ret < 0 ? descriptor : -1;
 
   dl_iterate_phdr (phdr_callback, (void *) &pd);