[cppcheck] Dangerous usage of strncat in file xf86AutoConfig.c

David Gerard dgerard at gmail.com
Sat Oct 3 05:59:38 PDT 2009


2009/10/3 Thomas Dickey <dickey at his.com>:

> It's possible, but cppcheck isn't that smart.


Interesting to note: Wine is being run through cppcheck after every
two-weekly release as well. It's showing up occasional bugs and
questionable coding in wine, but mostly bugs in cppcheck ;-)

I suggest running the whole server code base through cppcheck, seeing
what it comes up with then going through very carefully to work out
what's a bug in Xorg code and what's actually a bug in cppcheck.
Probably a lot of the latter still.

That said, it has usefully spotted bad stuff in wine. Just very
noisily. It'll probably manage at least as well on a codebase as large
and old as X11.


- d.


More information about the xorg-devel mailing list