[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#107081: PowerPC: reuse same va_list more that once failed



On Mon, 30 Jul 2001, Ben Collins wrote:
> > I realise that both reuse same va_list more that once.  The following
> > probram demonstrate this bug:
>
> stdarg is implemented in gcc, AFAIK.

And stdarg doesn't have these issues? The problem is that va_list isn't a
pointer on powerpc so it gets modified across calls. Saving the initial
va_list state and restoring it before reuse should solve this for varargs.

	Michael



Reply to: