tlf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tlf-devel] [PATCH] cppcheck


From: Stephane Fillod
Subject: [Tlf-devel] [PATCH] cppcheck
Date: Sat, 5 Dec 2009 13:48:27 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Re,

Have you ever heard aout cppcheck[1]? This is a simple syntax checker
of C/C++. For apt-get junkies: sudo apt-get install cppcheck
RTFM cppcheck(1).

[1] http://cppcheck.wiki.sourceforge.net/

This is the first time I'm using it. Here's what I've found in tlfrepo:

$ cppcheck -a -q -v src/*.[ch]
[src/getctydata.c:340]: (all) Buffer overrun
[src/initial_exchange.c:68]: (error) Resource leak: fp
[src/makelogline.c:138]: (all) Array index out of bounds
[src/readcalls.c:80]: (all) Buffer overrun
[src/readcalls.c:500]: (all) Buffer overrun
[src/searchlog.c:912]: (error) Resource leak: cfp
[src/writecabrillo.c:62]: (error) Resource leak: fp1
[src/writecabrillo.c:415]: (error) Resource leak: fp1

There's a patch attached fixing these issues.

73
-- 
Stephane - F8CFE

Attachment: tlf-cppcheck.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]