php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65433 Static analyzer errors
Submitted: 2013-08-10 00:05 UTC Modified: 2021-03-14 04:22 UTC
From: devzone dot my at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: devzone dot my at gmail dot com
New email:
PHP Version: OS:

 

 [2013-08-10 00:05 UTC] devzone dot my at gmail dot com
Description:
------------
Version: 5.5.1 (Release)

**sapi**
[sapi/cgi/fastcgi.c:887]: (error) Uninitialized variable: hdr
[sapi/cli/php_cli.c:1289]: (error) Common realloc mistake: 'ini_entries' nulled 
but not freed upon failure
[sapi/cli/php_cli.c:1299]: (error) Common realloc mistake: 'ini_entries' nulled 
but not freed upon failure
[sapi/cli/php_cli.c:1305]: (error) Common realloc mistake: 'ini_entries' nulled 
but not freed upon failure
[sapi/cli/php_cli.c:1345]: (error) Common realloc mistake: 'ini_entries' nulled 
but not freed upon failure
[sapi/cgi/cgi_main.c:1547]: (error) Possible null pointer dereference: str
[sapi/fpm/fpm/fastcgi.c:513]: (error) Uninitialized variable: hdr
[sapi/fpm/fpm/fpm_sockets.c:80]: (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
 
**main**
[main/php_ini.c:675]: (error) Common realloc mistake: 'php_ini_scanned_files' 
nulled but not freed upon failure

**win32**
[win32/readdir.c:48]: (error) Memory leak: filespec

**TSRM**
[TSRM/TSRM.c:229]: (error) Common realloc mistake: 'resource_types_table' nulled 
but not freed upon failure
[TSRM/TSRM.c:617]: (error) Uninitialized variable: mutexp

**ext**
[ereg/regex/regcomp.c:205]: (error) Uninitialized variable: c
[gd/libgd/gd_topal.c:1464]: (error) Uninitialized variable: shift_temp
[intl/calendar/calendar_methods.cpp:566]: (error) Uninitialized variable: 
variant
[intl/resourcebundle/resourcebundle_class.c:177]: (error) Uninitialized 
variable: rb
[intl/resourcebundle/resourcebundle_class.c:181]: (error) Uninitialized 
variable: rb
[mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c:257]: (error) Buffer is 
accessed out of bounds.
[mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c:493]: (error) Resource 
leak: fp
[mbstring/libmbfl/mbfl/mbfilter.c:1180]: (error) Uninitialized variable: 
needle_u8
[mbstring/oniguruma/enc/euc_jp.c:204]: (error) Uninitialized variable: r
[mbstring/oniguruma/enc/sjis.c:238]: (error) Uninitialized variable: r
[mbstring/oniguruma/regenc.c:852]: (error) Common realloc mistake: 'list' nulled 
but not freed upon failure
[mbstring/ucgendat/ucgendat.c:484]: (error) Common realloc mistake: 'pdecomps' 
nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:546]: (error) Common realloc mistake: 'title' 
nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:593]: (error) Common realloc mistake: 'upper' 
nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:640]: (error) Common realloc mistake: 'lower' 
nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:675]: (error) Common realloc mistake: 'ccl' nulled 
but not freed upon failure
[mbstring/ucgendat/ucgendat.c:756]: (error) Common realloc mistake: 'nums' 
nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:794]: (error) Common realloc mistake: 'ncodes' 
nulled but not freed upon failure
[mbstring/oniguruma/regexec.c:2230]: (error) Uninitialized variable: len
[mbstring/oniguruma/regexec.c:2269]: (error) Uninitialized variable: len
[opcache/zend_accelerator_blacklist.c:133]: (error) Memory leak: regexp
[oci8/oci8.c:2817]: (error) Memory leak: session_pool
[opcache/zend_accelerator_blacklist.c:243]: (error) Resource leak: fp
[opcache/zend_accelerator_util_funcs.c:479]: (error) Uninitialized variable: 
new_ce
[opcache/zend_accelerator_util_funcs.c:488]: (error) Uninitialized variable: 
new_prototype
[opcache/zend_accelerator_util_funcs.c:590]: (error) Uninitialized variable: 
new_ce
[odbc/php_odbc.c:2458]: (error) Uninitialized variable: rc
[snmp/snmp.c:1510]: (error) Uninitialized variable: a3
[snmp/snmp.c:1510]: (error) Uninitialized variable: a4
[snmp/snmp.c:1510]: (error) Uninitialized variable: a5
[snmp/snmp.c:1510]: (error) Uninitialized variable: a6
[snmp/snmp.c:1510]: (error) Uninitialized variable: a7
[standard/crypt_sha256.c:401]: (error) Possible null pointer dereference: 
copied_salt
[standard/crypt_sha512.c:435]: (error) Possible null pointer dereference: 
copied_salt
[sybase_ct/php_sybase_ct.c:792]: (error) Dereferencing 'sybase_ptr' after it is 
deallocated / released
[sybase_ct/php_sybase_ct.c:796]: (error) Memory pointed to by 'sybase_ptr' is 
freed twice.

 

Test script:
---------------
cppcheck php-5.5.1 -j4 2> err.txt


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-10 13:16 UTC] felipe@php.net
I just see a lot of false positive ones there.
 [2021-03-04 12:52 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-04 12:52 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-03-14 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC