Re: libbacktrace patch: fix memory allocation buglet on DWARF line table with zero dirs

2017-05-19 Thread Ian Lance Taylor via gcc-patches
On Fri, May 19, 2017 at 6:18 AM, Than McIntosh wrote: > > I wrote: > == The attached patch to libbacktrace is intended to fix a memory > == allocation bug involving reading of line table information. > > I've revised my previous patch to include a new test ("edtest") that > verifies the fix. Than

Re: libbacktrace patch: fix memory allocation buglet on DWARF line table with zero dirs

2017-05-19 Thread Than McIntosh via gcc-patches
Hi again, I wrote: == The attached patch to libbacktrace is intended to fix a memory == allocation bug involving reading of line table information. I've revised my previous patch to include a new test ("edtest") that verifies the fix. Thanks, Than --- Patch (take 2): diff --git a/Makefile.am

libbacktrace patch: fix memory allocation buglet on DWARF line table with zero dirs

2017-05-12 Thread Than McIntosh via gcc-patches
Hello, The attached patch to libbacktrace is intended to fix a memory allocation bug involving reading of line table information. The scenario of interest takes place when libbacktrace reads a DWARF line table whose directory count is zero (an unusual case). If the memory allocator invocation tri