Date: Wed, 25 Nov 2009 04:27:55 +0000 (UTC) From: Garrett Wollman <wollman@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/stdio vfwprintf.c Message-ID: <200911250428.nAP4SIll099812@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wollman 2009-11-25 04:27:55 UTC
FreeBSD src repository
Modified files:
lib/libc/stdio vfwprintf.c
Log:
SVN rev 199782 on 2009-11-25 04:27:55Z by wollman
In __mbsconv(), if prec was zero, nconv could have been used
uninitialized. Initialize it to a safe value so that there's no
chance of returning an error if stack garbage happens to be equal to
(size_t)-1 or (size_t)-2.
Found by: Clang static analyzer
MFC after: 7 days
Revision Changes Path
1.42 +1 -1 src/lib/libc/stdio/vfwprintf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911250428.nAP4SIll099812>
