]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: suppress a theoretical buffer overflow warning
authorPádraig Brady <P@draigBrady.com>
Wed, 11 Jun 2014 23:35:14 +0000 (00:35 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Jun 2014 23:39:13 +0000 (00:39 +0100)
commit4f169fe49bc6788cd1d5e5cce84b41d40f053d5f
tree0579c51162a9792fdaab442b500cc09439b408d0
parente919da5aee779358bab7def14c77049546811750
maint: suppress a theoretical buffer overflow warning

* src/numfmt.c (double_to_human): The printf format is built up in
a stack buffer which is big enough to hold any of the possible formats.
However the size parameter passed to snprintf was too big by 1
when GROUP was true.  So decrease the buffer available to snprintf
to avoid this theoretical in practise but valid coverity warning.
src/numfmt.c