cppcheck analysis of cfengine2_2.2.10-2.dsc
- ./src/cfenvgraph.c:780 [error] - Memory leak: array
- ./src/cfrun.c:556 [error] - Resource leak: fp
- ./src/cfservd.c:2616 [error] - snprintf size is out of bounds
- ./src/cfservd.c:2082 [error] - Dangerous usage of 'lastnode' (strncpy doesn't always 0-terminate it)
- ./src/client.c:363 [error] - Memory leak: cfdirh
- ./src/env_monitor.c:535 [error] - Array 'expect_incoming[11]' index 11 out of bounds
- ./src/env_monitor.c:537 [error] - Array 'expect_incoming[11]' index 12 out of bounds
- ./src/env_monitor.c:539 [error] - Array 'expect_incoming[11]' index 13 out of bounds
- ./src/env_monitor.c:541 [error] - Array 'expect_incoming[11]' index 14 out of bounds
- ./src/env_monitor.c:543 [error] - Array 'expect_incoming[11]' index 15 out of bounds
- ./src/env_monitor.c:545 [error] - Array 'expect_incoming[11]' index 16 out of bounds
- ./src/env_monitor.c:547 [error] - Array 'expect_incoming[11]' index 17 out of bounds
- ./src/env_monitor.c:536 [error] - Array 'expect_outgoing[11]' index 11 out of bounds
- ./src/env_monitor.c:538 [error] - Array 'expect_outgoing[11]' index 12 out of bounds
- ./src/env_monitor.c:540 [error] - Array 'expect_outgoing[11]' index 13 out of bounds
- ./src/env_monitor.c:542 [error] - Array 'expect_outgoing[11]' index 14 out of bounds
- ./src/env_monitor.c:544 [error] - Array 'expect_outgoing[11]' index 15 out of bounds
- ./src/env_monitor.c:546 [error] - Array 'expect_outgoing[11]' index 16 out of bounds
- ./src/env_monitor.c:548 [error] - Array 'expect_outgoing[11]' index 17 out of bounds
- ./src/env_monitor.c:578 [error] - Array 'var_incoming[11]' index 11 out of bounds
- ./src/env_monitor.c:580 [error] - Array 'var_incoming[11]' index 12 out of bounds
- ./src/env_monitor.c:582 [error] - Array 'var_incoming[11]' index 13 out of bounds
- ./src/env_monitor.c:584 [error] - Array 'var_incoming[11]' index 14 out of bounds
- ./src/env_monitor.c:586 [error] - Array 'var_incoming[11]' index 15 out of bounds
- ./src/env_monitor.c:588 [error] - Array 'var_incoming[11]' index 16 out of bounds
- ./src/env_monitor.c:590 [error] - Array 'var_incoming[11]' index 17 out of bounds
- ./src/env_monitor.c:579 [error] - Array 'var_outgoing[11]' index 11 out of bounds
- ./src/env_monitor.c:581 [error] - Array 'var_outgoing[11]' index 12 out of bounds
- ./src/env_monitor.c:583 [error] - Array 'var_outgoing[11]' index 13 out of bounds
- ./src/env_monitor.c:585 [error] - Array 'var_outgoing[11]' index 14 out of bounds
- ./src/env_monitor.c:587 [error] - Array 'var_outgoing[11]' index 15 out of bounds
- ./src/env_monitor.c:589 [error] - Array 'var_outgoing[11]' index 16 out of bounds
- ./src/env_monitor.c:591 [error] - Array 'var_outgoing[11]' index 17 out of bounds
- ./src/filenames.c:381 [error] - Dangerous usage of 'pathbuf' (strncpy doesn't always 0-terminate it)
- ./src/functions.c:1512 [error] - Resource leak: fp
- ./src/install.c:3486 [error] - Memory leak: ptr
- ./src/install.c:5303 [possible error] - Memory leak: ptr
- ./src/install.c:6832 [possible error] - Memory leak: spe
- ./src/instrument.c:545 [error] - snprintf size is out of bounds
- ./src/item.c:299 [possible error] - Memory leak: spe
- ./src/item.c:401 [possible error] - Memory leak: spe
- ./src/item.c:491 [possible error] - Memory leak: spe
- ./src/item.c:1077 [error] - Dangerous usage of 'refbase' (strncpy doesn't always 0-terminate it)
- ./src/link.c:243 [error] - Resource leak: dirh
- ./src/log.c:50 [error] - Dangerous usage of 'value' (strncpy doesn't always 0-terminate it)
- ./src/methods.c:680 [error] - Resource leak: fp
- ./src/package.c:2258 [error] - Dangerous usage of 'pkgname' (strncpy doesn't always 0-terminate it)
- ./src/package.c:2330 [error] - Dangerous usage of 'pkgname' (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 Thu, 16 Dec 2010 05:46:35 +0000, based on results by cppcheck 1.41-modif