This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libelf: Make sure string returned by elf_strptr is NUL terminated.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 06 Feb 2015 22:38:59 +0100
- Subject: 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.