develooper Front page | perl.perl5.porters | Postings from December 2010

Debian's Automated Code Analysis (DACA projet)

Thread Next
From:
Sébastien Aperghis-Tramoni
Date:
December 20, 2010 02:37
Subject:
Debian's Automated Code Analysis (DACA projet)
Message ID:
1292841422.4d0f31ced2de2@imp.free.fr
Hello all,

In case you haven't heard of, Debian has started a project to run automated
code analysis tools on all their packages, in order to improve the overall
quality of software.
  » http://lwn.net/Articles/420252/
  » http://qa.debian.org/daca/

Currently, only cppcheck and checkbashisms are executed.

In the case of Perl, cppcheck throws a couple of warnings, mostly in code
for exotic platforms:
  » http://qa.debian.org/daca/cppcheck/sid/perl_5.10.1-16.html

  cppcheck analysis of perl_5.10.1-16.dsc
  * ./NetWare/NWTInfo.c:167 [error] - Memory leak: tinfo
  * ./NetWare/Nwpipe.c:357 [error] - Allocation with fopen, fclose doesn't
release it.
  * ./djgpp/djgpp.c:54 [error] - Memory leak: l1
  * ./djgpp/djgpp.c:54 [error] - Memory leak: l1.command
  * ./ext/Compress-Raw-Bzip2/bzip2-src/bzip2recover.c:312 [error] - Buffer
overrun possible for long cmd-line args
  * ./ext/Compress-Raw-Bzip2/bzip2-src/unzcrash.c:141 [error] - Resource leak: f
  * ./ext/SDBM_File/sdbm/dba.c:39 [error] - Resource leak: pagf
  * ./ext/SDBM_File/sdbm/dbd.c:41 [error] - Resource leak: pagf
  * ./gv.c:1505 [error] - Uninitialized variable: gv
  * ./mg.c:1945 [error] - Possible null pointer dereference: mg - otherwise it
is redundant to check if mg is null at line 1947
  * ./mpeix/mpeix.c:336 [error] - Resource leak: fd
  * ./vms/vms.c:413 [error] - Uninitialized variable: result
  * ./vms/vms.c:1004 [error] - Uninitialized variable: midx
  * ./vms/vms.c:3372 [error] - Uninitialized variable: mbx1
  * ./vms/vms.c:3373 [error] - Uninitialized variable: mbx2
  * ./vms/vms.c:3527 [error] - Uninitialized variable: mbx1
  * ./vms/vms.c:3528 [error] - Uninitialized variable: mbx2
  * ./vms/vms.c:3674 [error] - Uninitialized variable: mbx
  * ./vms/vms.c:14608 [error] - Uninitialized variable: result

-- 
Sébastien Aperghis-Tramoni

Close the world, txEn eht nepO.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About