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

Mark Wielaard mark@klomp.org
Thu Aug 30 19:57:00 GMT 2018


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 of section numbers
> 
> The segmentation fault happens when prelink call elf_end().

Are you sure this isn't a bug in prelink like we discussed last time?
If it isn't, can you give a short example how this issue happens?

Thanks,

Mark



More information about the Elfutils-devel mailing list