This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libelf: Make sure string returned by elf_strptr is NUL terminated.


On Thu, Jan 22, 2015 at 12:55:43PM +0100, Mark Wielaard wrote:
> The result of elf_strptr is often used directly to print or strcmp
> the string. If the section data was truncated or corrupted that could
> lead to invalid memory reads possibly crashing the application.
> https://bugzilla.redhat.com/show_bug.cgi?id=1170810#c24
> 
> Reported-by: Alexander Cherepanov <cherepan@mccme.ru>
> Signed-off-by: Mark Wielaard <mjw@redhat.com>

I pushed this to master.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]