cppcheck analysis of php5_5.3.3-7.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:253 [error] - Uninitialized variable: __b
- ./ext/json/json.c:296 [error] - Uninitialized variable: __b
- ./ext/json/json.c:450 [error] - Uninitialized variable: __b
- ./ext/mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c:257 [error] - Buffer access out-of-bounds
- ./ext/mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c:493 [error] - Resource leak: fp
- ./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:1004 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_CONFIG_H'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT16'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT32'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT64'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT8'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SPL'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STDINT_H'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYS_STREAM_H;_HPUX_SOURCE'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYS_TYPES_H'.
- ./ext/mysqli/mysqli_api.c:1004 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_UINT16'.
- ./ext/oci8/oci8.c:1697 [error] - Possible null pointer dereference: connection
- ./ext/oci8/oci8.c:1797 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1811 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1824 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1829 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:2762 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:2771 [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:557 [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:63672 [error] - Possible null pointer dereference: pExpr
- ./ext/sqlite3/libsqlite/sqlite3.c:63673 [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:672 [error] - Common realloc mistake: "php_ini_scanned_files" nulled but not freed upon failure
- ./sapi/fpm/fpm/fpm_conf.c:291 [error] - Memory leak: kv
- ./sapi/fpm/fpm/fpm_conf.c:659 [error] - Resource leak: fd
- ./sapi/fpm/fpm/fpm_conf.c:943 [error] - Resource leak: fd
- ./sapi/fpm/fpm/fpm_sockets.c:79 [error] - Common realloc mistake: "env_value" 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 Sat, 08 Jan 2011 06:58:09 +0000, based on results by cppcheck 1.46