[PATCH] *printf: Violation of precision with null string

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Aug 5 21:29:20 UTC 2010


On Thu, Jun 10, 2010 at 03:04:51PM +0200, Jones Desougi wrote:
>When a string format is processed and the argument is NULL, this yields
>"(null)" regardless of precision. This does not make sense, precision
>should not be exceeded. A simple test shows that glibc outputs nothing
>if precision is smaller than six and the attached patch implements this
>same behaviour.

This question seems to pop up repeatedly.
I think that the current implementation is better since it makes
programming errors more obvious.


More information about the uClibc mailing list