|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-10 08:07 UTC] nikic@php.net
-Summary: Memory leak in zend_hash
+Summary: Memory leak on invalid offset type in
compound assignment
-Assigned To:
+Assigned To: nikic
[2020-08-10 08:14 UTC] nikic@php.net
[2020-08-10 08:14 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ We found a bug that leads to memory leak in php interpreter. Here's the log: --- ~/php-src/bld/sapi/cli/php -f php_poc41.php Warning: Undefined variable $b in /home/yongheng/php_commit/php_poc41.php on line 4 Fatal error: Uncaught TypeError: Illegal offset type in /home/yongheng/php_commit/php_poc41.php:4 Stack trace: #0 {main} thrown in /home/yongheng/php_commit/php_poc41.php on line 4 [Sun Aug 9 17:17:48 2020] Script: '/home/yongheng/php_commit/php_poc41.php' /home/yongheng/php-src/Zend/zend_hash.c(278) : Freeing 0x00007fddefa58540 (56 bytes), script=/home/yongheng/php_commit/php_poc41.php [Sun Aug 9 17:17:48 2020] Script: '/home/yongheng/php_commit/php_poc41.php' /home/yongheng/php-src/Zend/zend_hash.c(153) : Freeing 0x00007fddefa5c3c0 (264 bytes), script=/home/yongheng/php_commit/php_poc41.php === Total 2 memory leaks detected === --- Test script: --------------- <? $a = array () ; try { $b [ $a ] -= array ( $a ) ; } catch ( c ) { }