cppcheck is a package developed by the Mozilla package to do static code analysis on C++ code. I like to run it before release to catch any hidden bugs:
[src/builder.cpp:1387]: (error) Uninitialized variable: non_ring_bond [src/formats/mdlformat.cpp:977]: (error) Dangerous usage of 'type' (strncpy doesn't always 0-terminate it) [src/formats/fastsearchformat.cpp:370]: (error) Uninitialized variable: pidx [src/formats/pngformat.cpp:186]: (error) Memory leak: pCompTxt [src/formats/xtcformat.cpp:921]: (error) Common realloc mistake: "buf" nulled but not freed upon failure [src/formats/xtcformat.cpp:666]: (error) Mismatching allocation and deallocation: ip [src/formats/xtcformat.cpp:902]: (error) Mismatching allocation and deallocation: ip [src/formats/xtcformat.cpp:911]: (error) Memory leak: ip [src/parsmart.cpp:1750]: (error) Possible null pointer dereference: result - otherwise it is redundant to check if result is null at line 1751 Some of these may be false-positives. (I think I checked the src/parsmart.cpp issue.) -Geoff ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ OpenBabel-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-devel
