cppcheck analysis of php5_5.3.2-1.dsc
- ./TSRM/TSRM.c:229 [error] - Common realloc mistake: "resource_types_table" nulled but not freed upon failure
- ./TSRM/tsrm_virtual_cwd.c:986 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_DIRENT_H;NETWARE'.
- ./ext/date/lib/parse_tz.c:103 [error] - Memory leak: buffer
- ./ext/date/lib/parse_tz.c:128 [error] - Memory leak: buffer
- ./ext/date/lib/parse_tz.c:156 [error] - Memory leak: leap_buffer
- ./ext/exif/exif.c:3955 [error] - Possible null pointer dereference: sections_str
- ./ext/filter/sanitizing_filters.c:44 [error] - Uninitialized variable: __b
- ./ext/json/json.c:260 [error] - Uninitialized variable: __b
- ./ext/json/json.c:433 [error] - Uninitialized variable: __b
- ./ext/mbstring/oniguruma/regext.c:174 [error] - Memory leak: cpat
- ./ext/mbstring/oniguruma/regparse.c:4975 [error] - Uninitialized variable: sbr
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_CONFIG_H'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT16'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT32'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT64'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT8'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SPL'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STDINT_H'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYS_STREAM_H;_HPUX_SOURCE'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYS_TYPES_H'.
- ./ext/mysqli/mysqli_api.c:979 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_UINT16'.
- ./ext/oci8/oci8.c:1688 [error] - Possible null pointer dereference: connection
- ./ext/oci8/oci8.c:1788 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1802 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1815 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1820 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:2753 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:2762 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8_interface.c:1171 [error] - Possible null pointer dereference: column
- ./ext/oci8/oci8_interface.c:1919 [error] - Possible null pointer dereference: connection
- ./ext/pdo_firebird/firebird_statement.c:367 [error] - Null pointer dereference
- ./ext/spl/spl_observer.c:556 [error] - Uninitialized variable: __b
- ./ext/sqlite/libsqlite/src/main.c:148 [error] - Possible null pointer dereference: pTab - otherwise it is redundant to check if pTab is null at line 149
- ./ext/sqlite3/libsqlite/sqlite3.c:62529 [error] - Possible null pointer dereference: pExpr
- ./ext/sqlite3/libsqlite/sqlite3.c:62530 [error] - Possible null pointer dereference: pExpr
- ./ext/standard/crypt_freesec.c:385 [error] - Array 'keybuf[2]' index 3 out of bounds
- ./ext/standard/crypt_freesec.c:390 [error] - Array 'keybuf[2]' index 7 out of bounds
- ./ext/standard/crypt_freesec.c:591 [error] - Array 'keybuf[2]' index 3 out of bounds
- ./ext/standard/crypt_freesec.c:596 [error] - Array 'keybuf[2]' index 7 out of bounds
- ./ext/standard/crypt_freesec.c:605 [error] - Array 'keybuf[2]' index 2 out of bounds
- ./ext/standard/crypt_freesec.c:606 [error] - Array 'keybuf[2]' index 3 out of bounds
- ./ext/standard/crypt_freesec.c:607 [error] - Array 'keybuf[2]' index 4 out of bounds
- ./ext/standard/crypt_freesec.c:608 [error] - Array 'keybuf[2]' index 5 out of bounds
- ./ext/standard/crypt_freesec.c:609 [error] - Array 'keybuf[2]' index 6 out of bounds
- ./ext/standard/crypt_freesec.c:610 [error] - Array 'keybuf[2]' index 7 out of bounds
- ./ext/standard/crypt_freesec.c:385 [error] - Array 'keybuf[2]' index 3 out of bounds
- ./ext/standard/crypt_freesec.c:390 [error] - Array 'keybuf[2]' index 7 out of bounds
- ./ext/xml/xml.c:1658 [error] - Possible null pointer dereference: enc
- ./main/php_ini.c:670 [error] - Common realloc mistake: "php_ini_scanned_files" nulled but not freed upon failure
- ./sapi/isapi/stresstest/stresstest.cpp:589 [error] - Memory leak: environment
- ./sapi/tux/php_tux.c:143 [error] - Common realloc mistake: "vec" 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 Mon, 20 Dec 2010 21:17:47 +0000, based on results by cppcheck 1.46