This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdwfl: Handle seeing CU EOF marker without any other (real) CU.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 15 Jan 2015 14:24:39 +0100
- Subject: Re: [PATCH] libdwfl: Handle seeing CU EOF marker without any other (real) CU.
On Mon, 2015-01-05 at 00:36 +0100, Mark Wielaard wrote:
> intern_cu (and __libdwfl_nextcu) didn't correctly handle immediately seeing
> the CU EOF marker. In that case the *nextp pointer (first_cu) returned by
> intern_cu is -1. And less_layzy will immediately destroy the found CU node.
> So don't use the *found result after calling less_lazy.
> Found by afl-fuzz.
> Signed-off-by: Mark Wielaard <email@example.com>
I pushed this to master.