mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
(cherry picked from commit b6e1e5e0b3e6221c7b14fa10cba30f5c5e719e1b) Conflicts: Zend/zend_objects_API.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re
This commit is contained in:
committed by
Anatol Belski
parent
022e75cba1
commit
27876d22ef
18
ext/standard/tests/serialize/bug73052.phpt
Normal file
18
ext/standard/tests/serialize/bug73052.phpt
Normal file
@@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
Bug #73052: Memory Corruption in During Deserialized-object Destruction
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class obj {
|
||||
var $ryat;
|
||||
public function __destruct() {
|
||||
$this->ryat = null;
|
||||
}
|
||||
}
|
||||
|
||||
$poc = 'O:3:"obj":1:{';
|
||||
var_dump(unserialize($poc));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Notice: unserialize(): Error at offset 13 of 13 bytes in %sbug73052.php on line %d
|
||||
bool(false)
|
||||
Reference in New Issue
Block a user