cppcheck analysis of php5_5.3.6-6.dsc
- ./TSRM/TSRM.c:229 [error] - Common realloc mistake: "resource_types_table" nulled but not freed upon failure
- ./TSRM/tsrm_virtual_cwd.c:1128 [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:3974 [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:449 [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/mbstring/ucgendat/ucgendat.c:546 [error] - Common realloc mistake: "title" nulled but not freed upon failure
- ./ext/mbstring/ucgendat/ucgendat.c:593 [error] - Common realloc mistake: "upper" nulled but not freed upon failure
- ./ext/mbstring/ucgendat/ucgendat.c:640 [error] - Common realloc mistake: "lower" nulled but not freed upon failure
- ./ext/mbstring/ucgendat/ucgendat.c:675 [error] - Common realloc mistake: "ccl" nulled but not freed upon failure
- ./ext/mbstring/ucgendat/ucgendat.c:756 [error] - Common realloc mistake: "nums" nulled but not freed upon failure
- ./ext/mbstring/ucgendat/ucgendat.c:794 [error] - Common realloc mistake: "ncodes" nulled but not freed upon failure
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'AUTOCOMMIT_TX_COMMIT_ROLLBACK'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_CONFIG_H'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT16'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT32'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT64'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_INT8'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SPL'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_STDINT_H'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYS_STREAM_H;_HPUX_SOURCE'.
- ./ext/mysqli/mysqli_api.c:1008 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SYS_TYPES_H'.
- ./ext/oci8/oci8.c:1703 [error] - Possible null pointer dereference: connection
- ./ext/oci8/oci8.c:1803 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1817 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1830 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:1835 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:2754 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8.c:2763 [error] - Uninitialized variable: __b
- ./ext/oci8/oci8_interface.c:1181 [error] - Possible null pointer dereference: column
- ./ext/oci8/oci8_interface.c:1929 [error] - Possible null pointer dereference: connection
- ./ext/pdo_firebird/firebird_statement.c:400 [error] - Null pointer dereference
- ./ext/spl/spl_observer.c:672 [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:75180 [error] - Possible null pointer dereference: pTable - otherwise it is redundant to check if pTable is null at line 75183
- ./ext/sqlite3/libsqlite/sqlite3.c:70930 [error] - Possible null pointer dereference: pExpr
- ./ext/sqlite3/libsqlite/sqlite3.c:70931 [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:1738 [error] - Possible null pointer dereference: enc
- ./main/php_ini.c:699 [error] - Common realloc mistake: "php_ini_scanned_files" nulled but not freed upon failure
- ./sapi/fpm/fpm/fpm_conf.c:169 [error] - Memory leak: new
- ./sapi/fpm/fpm/fpm_conf.c:321 [error] - Memory leak: kv
- ./sapi/fpm/fpm/fpm_conf.c:763 [error] - Resource leak: fd
- ./sapi/fpm/fpm/fpm_conf.c:1065 [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
- ./win32/readdir.c:48 [error] - Memory leak: filespec
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, 07 Apr 2011 06:59:35 +0000, based on results by cppcheck 1.46