cppcheck analysis of c-cpp-reference_2.0.2-7.dsc
- ./reference/C/CONTRIB/OR_PRACTICAL_C/14_03.c:48 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./reference/C/CONTRIB/OR_PRACTICAL_C/14_05.c:28 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./reference/C/CONTRIB/OR_PRACTICAL_C/14_07.c:75 [error] - Resource leak: in_file
- ./reference/C/CONTRIB/OR_PRACTICAL_C/14_08.c:77 [error] - Resource leak: in_file
- ./reference/C/CONTRIB/OR_PRACTICAL_C/14_10.c:10 [error] - Division by zero
- ./reference/C/CONTRIB/OR_PRACTICAL_C/14_11.c:12 [error] - Division by zero
- ./reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c:3 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./reference/C/CONTRIB/OR_USING_C/d.1.c:30 [error] - Mismatching allocation and deallocation: dp
- ./reference/C/CONTRIB/OR_USING_C/d.1.c:26 [error] - Memory leak: dp
- ./reference/C/CONTRIB/OR_USING_C/d.1.c:80 [error] - Resource leak: dirp
- ./reference/C/CONTRIB/OR_USING_C/dircom.c:30 [error] - Mismatching allocation and deallocation: dp
- ./reference/C/CONTRIB/OR_USING_C/dircom.c:26 [error] - Memory leak: dp
- ./reference/C/CONTRIB/OR_USING_C/dircom.c:80 [error] - Resource leak: dirp
- ./reference/C/CONTRIB/SNIP/bincomp.c:171 [error] - Resource leak: f1
- ./reference/C/CONTRIB/SNIP/bincomp.c:171 [error] - Resource leak: f2
- ./reference/C/CONTRIB/SNIP/chbytes.c:76 [error] - Resource leak: fp
- ./reference/C/CONTRIB/SNIP/checksum.c:37 [error] - Resource leak: fp
- ./reference/C/CONTRIB/SNIP/commconv.c:97 [possible error] - Resource leak: OutFile
- ./reference/C/CONTRIB/SNIP/crc-16f.c:128 [error] - Resource leak: fd
- ./reference/C/CONTRIB/SNIP/crypt.c:82 [error] - Resource leak: in
- ./reference/C/CONTRIB/SNIP/dspdtst.c:149 [error] - Resource leak: nulfile
- ./reference/C/CONTRIB/SNIP/dspdtst.c:149 [possible error] - Resource leak: nulfile
- ./reference/C/CONTRIB/SNIP/favail.c:52 [possible error] - Resource leak: fp
- ./reference/C/CONTRIB/SNIP/fsize.c:17 [error] - Memory leak: bufptr
- ./reference/C/CONTRIB/SNIP/fsize.c:50 [error] - Resource leak: fp
- ./reference/C/CONTRIB/SNIP/getopts.c:82 [error] - Invalid number of character (() when these macros are defined: ''.
- ./reference/C/CONTRIB/SNIP/getopts.c:82 [error] - Invalid number of character (() when these macros are defined: 'MK_FP'.
- ./reference/C/CONTRIB/SNIP/getopts.c:82 [error] - Invalid number of character (() when these macros are defined: 'TEST'.
- ./reference/C/CONTRIB/SNIP/getopts.c:82 [error] - Invalid number of character (() when these macros are defined: '__POWERC'.
- ./reference/C/CONTRIB/SNIP/getopts.c:82 [error] - Invalid number of character (() when these macros are defined: '__TURBOC__'.
- ./reference/C/CONTRIB/SNIP/getopts.c:82 [error] - Invalid number of character (() when these macros are defined: '__ZTC__'.
- ./reference/C/CONTRIB/SNIP/hexdump.c:40 [error] - Resource leak: fp
- ./reference/C/CONTRIB/SNIP/killff.c:73 [error] - Resource leak: in
- ./reference/C/CONTRIB/SNIP/killff.c:73 [error] - Resource leak: out
- ./reference/C/CONTRIB/SNIP/myio.cpp:124 [error] - Mismatching allocation and deallocation: tmp
- ./reference/C/CONTRIB/SNIP/pfopen.c:38 [error] - Resource leak: file
- ./reference/C/CONTRIB/SNIP/split.c:70 [error] - Resource leak: from
- ./reference/C/CONTRIB/SNIP/srchfile.c:44 [error] - Memory leak: buffer
- ./reference/C/CONTRIB/SNIP/stripeof.c:60 [error] - Memory leak: buf
- ./reference/C/CONTRIB/SNIP/stripeof.c:59 [possible error] - Resource leak: fd
- ./reference/C/CONTRIB/SNIP/style.c:28 [error] - Uninitialized variable: local3
- ./reference/C/CONTRIB/SNIP/wc.c:65 [error] - Resource leak: infileptr
- ./reference/C/EXAMPLES/funcpt3.c:37 [error] - Returning pointer to local array variable
- ./reference/C/EXAMPLES/funcpt3.c:53 [error] - Returning pointer to local array variable
- ./reference/C/EXAMPLES/printenv.c:19 [error] - Uninitialized variable: Count
- ./reference/C/PROBLEMS/ljust.c:4 [error] - Possible null pointer dereference: a
- ./reference/C/PROBLEMS/times3.c:4 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./reference/CPLUSPLUS/EXAMPLES/MGREP.CC:149 [possible error] - Memory leak: List::pFirstItem
- ./reference/CPLUSPLUS/EXAMPLES/MGREP.CC:583 [possible error] - Memory leak: grep::SearchString
- ./reference/CPLUSPLUS/EXAMPLES/enum1.c:19 [error] - Uninitialized variable: TraficLight
- ./reference/CPLUSPLUS/EXAMPLES/io1.cc:17 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./reference/CPLUSPLUS/EXAMPLES/io2.cc:19 [possible error] - Dangerous usage of std::cin, possible buffer overrun
- ./reference/CPLUSPLUS/EXAMPLES/struct1.cc:27 [error] - Invalid number of character ({) when these macros are defined: ''.
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:46:33 +0000, based on results by cppcheck 1.41-modif