bug-glibc
[Top][All Lists]
Advanced

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

Re: BUG: printf formatting libc.so.6


From: Segher Boessenkool
Subject: Re: BUG: printf formatting libc.so.6
Date: Tue, 27 May 2003 14:34:23 +0100
User-agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2.1) Gecko/20021130

void main(void) { printf("%1$d %1$c %2$d %2$c\n", 32, 49); }

This fails on ancient glibc's, with ancient gcc's, too.
The failure mode is more apparent on big-endian systems.

See  union printf_arg  and how it's used in vfprintf.c .

The fix is probably to document not to use a positional
parameter more than once.


Segher






reply via email to

[Prev in Thread] Current Thread [Next in Thread]