printf behaviour with illegal or malformed format string

George Paplas geopapl at yahoo.com
Mon Dec 12 14:31:17 PST 2005



--- Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:

> >>If it is not set, the format string will be output unformatted in
> >>the message "WARNING: Illegal printf() format string: \"...\".
> >
> >Since this check presumably applies to the entire *printf() family,
> >where do you report the error for {s,f}printf()?
> 
> Whereever the strings was meant to go, what else can I do ?

And what if you are doing an sprintf to a buffer smaller than your
warning message?

-geop

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-arch mailing list