This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] nm: Check for malloc size argument overflow in show_symbols.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 29 Mar 2016 11:24:20 +0200
- Subject: Re: [PATCH] nm: Check for malloc size argument overflow in show_symbols.
On Mon, 2016-03-21 at 16:12 +0100, Mark Wielaard wrote:
> On Mon, 2016-03-21 at 16:03 +0100, Mark Wielaard wrote:
> > + if (nentries > SIZE_MAX / sizeof (GElf_SymX))
> > + error (0, 0,
> Oops. We don't just want to print a warning here. We want to report an
> EXIT_FAILURE on error. Fixed patch attached.
I pushed this fixed patch to master now.