This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]