Re: [PATCH V2] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-09-02 Thread Robert Yang
On 08/31/2018 05:35 PM, Mark Wielaard wrote: Hi Robert, On Fri, 2018-08-31 at 10:17 +0800, Robert Yang wrote: Sorry, I can't make sure which ones is wrong, libqb, prelink or elfutils, this happens when cross compiling, and I've built more than 4 hunderds of packages, libqb 1.0.3 is the only

Re: [PATCH V2] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-08-31 Thread Mark Wielaard
Hi Robert, On Fri, 2018-08-31 at 10:17 +0800, Robert Yang wrote: > Sorry, I can't make sure which ones is wrong, libqb, prelink or > elfutils, this > happens when cross compiling, and I've built more than 4 hunderds of packages, > libqb 1.0.3 is the only package which has the problem, I've also fi

Re: [PATCH V2] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-08-30 Thread Robert Yang
On 08/31/2018 03:57 AM, Mark Wielaard wrote: On Wed, Aug 29, 2018 at 04:53:20PM +0800, Robert Yang wrote: The one which actually saves the data is data_list.data.d.d_buf, so check it before free rawdata_base. This can fix a segmentation fault when prelink libqb_1.0.3: prelink: /usr/lib/libqb

Re: [PATCH V2] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-08-30 Thread Mark Wielaard
On Wed, Aug 29, 2018 at 04:53:20PM +0800, Robert Yang wrote: > The one which actually saves the data is data_list.data.d.d_buf, so check it > before free rawdata_base. > > This can fix a segmentation fault when prelink libqb_1.0.3: > prelink: /usr/lib/libqb.so.0.18.2: Symbol section index outside

[PATCH V2] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-08-29 Thread Robert Yang
The one which actually saves the data is data_list.data.d.d_buf, so check it before free rawdata_base. This can fix a segmentation fault when prelink libqb_1.0.3: prelink: /usr/lib/libqb.so.0.18.2: Symbol section index outside of section numbers The segmentation fault happens when prelink call e