This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdw: Add missing size check to parse_eh_frame_hdr.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 15 Jan 2015 14:15:26 +0100
- Subject: Re: [PATCH] libdw: Add missing size check to parse_eh_frame_hdr.
On Sat, 2015-01-03 at 00:31 +0100, Mark Wielaard wrote:
> afl-fuzz showed that when parse_eh_frame_hdr was called from
> getcfi_scn_eh_frame invalid data could be read because of a missing
> size check. That check was there when parse_eh_frame_hdr was called
> from getcfi_gnu_eh_frame. Move the size check into parse_eh_frame. And
> add an extra check to make sure d_buf is not NULL.
I pushed this to master.