cppcheck analysis of cfengine3_3.0.5+dfsg-1.dsc
- ./src/agent.c:858 [error] - instance of "cfstat" object destroyed immediately
- ./src/cfreport.c:2526 [error] - Resource leak: dirh
- ./src/cfreport.c:2455 [error] - Memory leak: array
- ./src/client_code.c:1276 [error] - Dangerous usage of 'ipname' (strncpy doesn't always 0-terminate it)
- ./src/env_context.c:791 [error] - Dangerous usage of 'class' (strncpy doesn't always 0-terminate it)
- ./src/evalfunction.c:4050 [error] - Memory leak: result
- ./src/files_edit.c:53 [error] - Memory leak: ec
- ./src/files_interfaces.c:1492 [error] - instance of "cfstat" object destroyed immediately
- ./src/files_repository.c:109 [error] - instance of "cfstat" object destroyed immediately
- ./src/graph.c:216 [error] - Memory leak: evc
- ./src/matching.c:1314 [error] - Dangerous usage of 'refbase' (strncpy doesn't always 0-terminate it)
- ./src/promises.c:855 [error] - Dangerous usage of 'pre_buffer' (strncpy doesn't always 0-terminate it)
- ./src/runagent.c:143 [error] - Memory leak: pp
- ./src/server.c:2928 [error] - instance of "cfstat" object destroyed immediately
- ./src/server.c:3040 [error] - instance of "cfstat" object destroyed immediately
- ./src/server.c:1953 [error] - Dangerous usage of 'lastnode' (strncpy doesn't always 0-terminate it)
- ./src/verify_packages.c:425 [error] - Dangerous usage of 'arch' (strncpy doesn't always 0-terminate it)
- ./src/verify_storage.c:358 [error] - Dangerous usage of 'vbuff' (strncpy doesn't always 0-terminate it)
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:12:55 +0000, based on results by cppcheck 1.46