va_copy() problem

Johannes Hofmann Johannes.Hofmann at gmx.de
Mon Nov 12 12:53:46 PST 2007


Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> On Mon, Nov 12, 2007 at 06:58:30PM +0000, Johannes Hofmann wrote:
>>               va_copy(va1, va);
>>               n = vsnprintf(s->str + s->len, s->size - s->len, format, va);
>>               va_end(va1);
> 
> va -> va1 in the call to vsnprintf. Also consider using vasprintf.

Ooops, you are right of course.
But unfortunately it still crashes badly...

-stack-protector -fno-stack-protector does not help either.

 Johannes

> 
> Joerg





More information about the Users mailing list