cppcheck analysis of libstatgrab_0.16-0.1.dsc
- ./src/libstatgrab/disk_stats.c:355 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/libstatgrab/disk_stats.c:355 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_CONFIG_H'.
- ./src/libstatgrab/disk_stats.c:355 [error] - Invalid number of character ({) when these macros are defined: 'NETBSD'.
- ./src/libstatgrab/disk_stats.c:355 [error] - Invalid number of character ({) when these macros are defined: 'OPENBSD'.
- ./src/libstatgrab/disk_stats.c:355 [error] - Invalid number of character ({) when these macros are defined: 'SG_ENABLE_DEPRECATED'.
- ./src/libstatgrab/network_stats.c:414 [error] - Uninitialized variable: interfaces
- ./src/libstatgrab/network_stats.c:307 [error] - Resource leak: f
- ./src/libstatgrab/network_stats.c:751 [error] - Resource leak: f
- ./src/libstatgrab/network_stats.c:897 [error] - Uninitialized variable: network_iface_stat_ptr
- ./src/libstatgrab/os_info.c:244 [error] - Invalid deallocation
- ./src/libstatgrab/os_info.c:248 [error] - Invalid deallocation
- ./src/libstatgrab/os_info.c:256 [error] - Invalid deallocation
- ./src/libstatgrab/os_info.c:260 [error] - Invalid deallocation
- ./src/libstatgrab/tools.c:197 [error] - Undefined behaviour: tmpnode 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.
- ./src/libstatgrab/user_stats.c:73 [error] - Resource leak: f
- ./src/statgrab/statgrab.c:140 [error] - Common realloc mistake: "stats" nulled but not freed upon failure
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Wed, 22 Dec 2010 00:58:08 +0000, based on results by cppcheck 1.46