Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug #72340: Double Free Courruption in wddx_deserialize
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
Bug #72340: Double Free Courruption in wddx_deserialize | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded("wddx")) print "skip"; | ||
?> | ||
--FILE-- | ||
<?php | ||
$xml = <<<EOF | ||
<?xml version='1.0' ?> | ||
<!DOCTYPE wddxPacket SYSTEM 'wddx_0100.dtd'> | ||
<wddxPacket version='1.0'> | ||
<array><var name="XXXXXXXX"><boolean value="none">TEST</boolean></var> | ||
<var name="YYYYYYYY"><var name="ZZZZZZZZ"><var name="EZEZEZEZ"> | ||
</var></var></var> | ||
</array> | ||
</wddxPacket> | ||
EOF; | ||
$array = wddx_deserialize($xml); | ||
var_dump($array); | ||
?> | ||
--EXPECT-- | ||
array(0) { | ||
} |
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