buffer overflow with ar

Nick Clifton nickc@redhat.com
Thu Jul 7 11:41:00 GMT 2005


Hi Ralf,

> When trying to use a cross-ar from vanilla binutils-2.16 or
> binutils-2.16.1 on FC4, I am observing this 
> 
> # arm-rtems4.7-ar  rc ./libgcc.a libgcc/./_udivsi3.o
> *** buffer overflow detected ***: arm-rtems4.7-ar terminated

> /lib/libc.so.6(__sprintf_chk+0x30)[0x1eee24]
> arm-rtems4.7-ar[0x804f5f6]


> I there a fix/work-around? 

Not yet.

> Is it a binutils or FC problem?

binutils.

> I hardly can believe nobody has been facing this issue before, but
> haven't tried to investigate in depth, yet.

Can you run this under a debugger and find out which call to sprintf is 
overflowing, and what the parameters are ?

Cheers
   Nick




More information about the Binutils mailing list