This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdwfl: linux-proc-maps.c (proc_maps_report): Don't assert on bad input.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 03 Mar 2014 09:27:24 +0100
- Subject: Re: [PATCH] libdwfl: linux-proc-maps.c (proc_maps_report): Don't assert on bad input.
On Wed, 2014-02-26 at 17:00 +0100, Mark Wielaard wrote:
> If ino == last_ino && dmajor == last_dmajor && dminor == last_dminor then
> we expect the file names to be the same as well. Which is reasonable if
> the input came from the /proc file system. But there could be bad user
> input if the file was supplied through dwfl_linux_proc_maps_report.
> Instead of asserting on the bad input, just signal a bad_report.
>
> +2014-02-26 Mark Wielaard <mjw@redhat.com>
> +
> + * linux-proc-maps.c (proc_maps_report): Don't assert on bad input.
I pushed this to master.