[Libreoffice] cppcheck : snprintf size is out of bounds
caolanm at redhat.com
Wed Nov 17 08:08:15 PST 2010
On Fri, 2010-11-12 at 12:44 +0100, Julien wrote:
> I'm currently running the last version of cppcheck (i updated with git
> this morning) and i get this error :
> I don't understand where's the pb with snprintf, pString has a size of
> 1024 and snprintf takes a size of 1024.
> Is this a false positive to give to the cppcheck guys ?
Well I think so. if you replace nBezString in the sprintf line with a
raw 1024 does it complain ?
More information about the LibreOffice