This is the mail archive of the
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.
> Reported-by: Alexander Cherepanov <firstname.lastname@example.org>
> Signed-off-by: Mark Wielaard <email@example.com>
I pushed this to master.