On Tue, Feb 08, 2011 at 11:39:50AM +0100, Jones Desougi wrote: > I still consider uclibc broken in this respect. > However, the important case is with zero precision. In this case the > pointer value shouldn't matter, and uclibc does break existing software.
Existing and conforming, as far as I can tell; the specification says that printf shall read no more than precision chars from the pointed-to string, so in case the precision is zero, it's not allowed to read any. Strictly speaking, however, the standard might make it UB as soon as you even *pass* the NULL pointer. In any case, I support this fix. Rich _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
