summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/xprintf_time.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2009-11-25 04:27:55 +0000
committerwollman <wollman@FreeBSD.org>2009-11-25 04:27:55 +0000
commitb15e7bd9790eb41e97bbef83cfa1f1d778e2e7e2 (patch)
treede117fc85f5356429d57eabe438f1669bbab5b22 /lib/libc/stdio/xprintf_time.c
parentf44a6f4d8d88c80474b25b8be3da936d6c652bb1 (diff)
downloadFreeBSD-src-b15e7bd9790eb41e97bbef83cfa1f1d778e2e7e2.zip
FreeBSD-src-b15e7bd9790eb41e97bbef83cfa1f1d778e2e7e2.tar.gz
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
Diffstat (limited to 'lib/libc/stdio/xprintf_time.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud