]> granicus.if.org Git - php/commit
Fix use-after-free is WeakMap key and value are the same
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Aug 2020 10:05:06 +0000 (12:05 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Aug 2020 10:05:06 +0000 (12:05 +0200)
commit0026d8a7838914296c0d7e99ddc639c84e6ebb8a
tree58dcdf4746a8e7c2f53ebabc30c12f3bd63d7951
parent9d409f2c1edf647f19a731a393fa94e178f977eb
Fix use-after-free is WeakMap key and value are the same

Drop the object from the WeakMap as the last step, as this might
end up destroying the object.
Zend/tests/weakrefs/weakmap_weakness.phpt
Zend/zend_weakrefs.c