Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug #73052 - Memory Corruption in During Deserialized-object Dest…
…ruction
- Loading branch information
Showing
4 changed files
with
51 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters