php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62838 enchant_dict_quick_check() destroys zval, but fails to initialized it
Submitted: 2012-08-16 10:28 UTC Modified: 2012-08-16 10:43 UTC
From: tony2001@php.net Assigned: tony2001 (profile)
Status: Closed Package: Enchant related
PHP Version: 5.4Git-2012-08-16 (Git) OS:
Private report: No CVE-ID: None
 [2012-08-16 10:28 UTC] tony2001@php.net
Description:
------------
enchant_dict_quick_check() destroys zval, but doesn't initialize it when passing invalid enchant resource.
Initially reported by Mateusz Goik.

Test script:
---------------
<?
$a = array();
enchant_dict_quick_check(STDIN, 0, $a);
array_splice($a,0, 0,0);
?>


Actual result:
--------------
/local/qa/5_4_ZTS/Zend/zend_hash.c(1055) : ht=0x7f6745191038 is inconsistent


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-16 10:28 UTC] tony2001@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: tony2001
 [2012-08-16 10:40 UTC] tony2001@php.net
Automatic comment on behalf of tony2001
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8649e4236b12ce9b90356a5804be96bd1f67bcd6
Log: Fixed bug #62838
 [2012-08-16 10:40 UTC] tony2001@php.net
Automatic comment on behalf of tony2001
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8649e4236b12ce9b90356a5804be96bd1f67bcd6
Log: Fixed bug #62838
 [2012-08-16 10:41 UTC] tony2001@php.net
Automatic comment on behalf of tony2001
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8649e4236b12ce9b90356a5804be96bd1f67bcd6
Log: Fixed bug #62838
 [2012-08-16 10:43 UTC] tony2001@php.net
-Status: Assigned +Status: Closed
 [2012-08-16 10:43 UTC] tony2001@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-10-07 23:23 UTC] stas@php.net
Automatic comment on behalf of tony2001
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=8649e4236b12ce9b90356a5804be96bd1f67bcd6
Log: Fixed bug #62838
 [2014-10-07 23:34 UTC] stas@php.net
Automatic comment on behalf of tony2001
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=8649e4236b12ce9b90356a5804be96bd1f67bcd6
Log: Fixed bug #62838
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 21:01:27 2024 UTC