On Tue, Sep 27, 2011 at 11:45:09PM +0100, Nicholas Marriott wrote: > This would make it build... dunno why this was missed before :-/. > > IIRC libbfd plays games with arrays for ELF that cause warnings, > probably easy enough to shut up in code if someone wants to look.
That's definitely NOT a solution. We're talking about an actual buffer overflow here, and a bad one, since the code in that version of gdb is fucked enough to #define a size TWICE to different values. Who knows what other problems that encurs besides a buffer overflow in memcpy ? Sorry, but the actual problem must be fixed... apparently, has even been noticed in more recent versions of gdb.
