1
0
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:
Stanislav Malyshev
2016-09-11 21:19:29 -07:00
committed by Anatol Belski
parent 022e75cba1
commit 27876d22ef

View 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)