Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 some cppcheck reports

open
nobody
None
5
2012-08-22
2012-05-25
serval24
No

Hello,

I runned cppcheck (a free analysis tool) and attached a zip with files, each containing the same kind of warnings.
There may be some false positive (I think about leaks report) but it's quite safe and should be straightforward to fix.

Hope it helps.

Julien.
PS : I couldn't run a full scan (perhaps just a little than half the code), it's very long and I don't know why it's so long (compared for example with LibreOffice sources).

Discussion

  • serval24
    serval24
    2012-05-25

    cppcheck reports

     
    Attachments
  • serval24
    serval24
    2012-05-25

    Cppcheck about array limits check (I had forgot it)

     
  • Thank you for pointing us to this tool. I was able to run it for all the code,
    but we need a while before the report can be used, as the code is now
    under a little refactoring (Khaled is reducing the number of configuration
    directives - I hope cppcheck will run faster as a side effect).

     
    • status: open --> pending
     
  • serval24
    serval24
    2012-08-22

    I discovered cppcheck during some contribution to LibreOffice (ie OpenOffice fork).
    Cppcheck is very easy and quick to compile so don't hesitate, moreover, cppcheck's authors improve it every day so don't hesitate to use git version.

    On LibreOffice, there is now Clang Scan analyzer which could help.
    Finally, some devs try to deploy gcov for coverage testing.
    2 other tools which may help.

     
  • serval24
    serval24
    2012-08-22

    • status: pending --> open