cppcheck analysis of trafficserver_2.1.5-unstable-1.dsc
- ./iocore/aio/AIO.cc:115 [error] - Invalid number of character ({) when these macros are defined: 'AIO_STATS'.
- ./iocore/dns/SplitDNS.cc:522 [error] - Memory leak: dnsH
- ./iocore/net/SSLNet.cc:244 [error] - Uninitialized variable: randBuff
- ./iocore/net/SSLNet.cc:525 [error] - Uninitialized variable: randBuff
- ./proxy/logging/LogFile.h:147 [error] - Invalid number of character (() when these macros are defined: 'TS_MICRO'.
- ./proxy/logging/LogAccess.cc:382 [error] - Possible null pointer dereference: str
- ./proxy/logging/LogFile.h:147 [error] - Invalid number of character (() when these macros are defined: 'IOCORE_LOG_COLLATION;TS_MICRO'.
- ./proxy/logstats.cc:2182 [error] - Resource leak: dirp
- ./proxy/mgmt2/api2/CfgContextImpl.cc:1949 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./proxy/mgmt2/api2/CfgContextImpl.cc:1986 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./proxy/mgmt2/api2/remote/APITestCliRemote.cc:673 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./proxy/mgmt2/api2/remote/APITestCliRemote.cc:710 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./proxy/mgmt2/cli2/ConfigCmd.cc:4121 [error] - Resource leak: fstr
- ./proxy/mgmt2/cli2/ConfigUpgradeCmd.cc:401 [error] - Resource leak: Fptr
- ./proxy/mgmt2/tools/SysAPI.cc:1604 [error] - Resource leak: fd
- ./proxy/mgmt2/tools/SysAPI.cc:1863 [error] - Resource leak: fd
- ./proxy/mgmt2/tools/SysAPI.cc:1879 [error] - Resource leak: fd
- ./proxy/mgmt2/tools/SysAPI.cc:1986 [error] - Memory leak: fd
- ./proxy/mgmt2/tools/SysAPI.cc:2047 [error] - Resource leak: fd
- ./proxy/mgmt2/tools/SysAPI.cc:2125 [error] - Resource leak: fd
- ./proxy/mgmt2/tools/SysAPI.cc:2358 [error] - Resource leak: fp
- ./proxy/mgmt2/tools/SysAPI.cc:2696 [error] - Resource leak: fp
- ./proxy/mgmt2/tools/SysAPI.cc:2818 [error] - Resource leak: fp
- ./proxy/mgmt2/tools/SysAPI.cc:2818 [error] - Resource leak: tmp
- ./proxy/mgmt2/tools/SysAPI.cc:1345 [error] - Resource leak: fp
- ./proxy/mgmt2/tools/SysAPI.cc:1345 [error] - Resource leak: tmp
- ./proxy/mgmt2/utils/XmlUtils.cc:500 [error] - Memory leak: pBuffer
- ./test/SDKtest/client/api/BlackList.c:204 [error] - Memory leak: hostname
- ./test/SDKtest/client/api/RequestList.c:268 [error] - Memory leak: portname
- ./test/SDKtest/client/api/RequestList.c:244 [error] - Memory leak: tail
- ./test/SDKtest/client/api/RequestList.c:250 [error] - Memory leak: tmp_h1
- ./test/SDKtest/client/api/RequestList.c:229 [error] - Memory leak: tmp_h2
- ./test/SDKtest/client/api/RequestList.c:239 [error] - Memory leak: tmp_h3
- ./test/SDKtest/client/api/SingleHostFilter.c:150 [error] - Memory leak: portname
- ./test/SDKtest/client/api/SingleHostFilter.c:150 [error] - Memory leak: hostname
- ./test/SDKtest/client/api/SingleHostFilter.c:132 [error] - Data is allocated but not initialized: portname
- ./test/SDKtest/synth_server/synth_server.c:486 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./test/SDKtest/synth_server/synth_server.c:486 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./test/SDKtest/synth_server/synth_server.c:486 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG3'.
- ./test/SDKtest/synth_server/synth_server.c:486 [error] - Invalid number of character ({) when these macros are defined: '_PLUG_IN'.
- ./test/SDKtest/synth_server/synth_server.c:486 [error] - Invalid number of character ({) when these macros are defined: 'hpux'.
- ./test/plugin/CacheAPITester/CacheAPITester.c:62 [error] - Dangerous usage of 'hostname' (strncpy doesn't always 0-terminate it)
- ./test/plugin/assembly/assembly.c:818 [error] - Undefined behaviour: key_value is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./test/plugin/assembly/assembly.c:833 [error] - Undefined behaviour: key_value is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./test/plugin/write-server-ip/write-server-ip.c:111 [error] - Undefined behaviour: output_str is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sat, 16 Apr 2011 06:58:16 +0000, based on results by cppcheck 1.46