Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix bug #73631 - Invalid read when wddx decodes empty boolean element
- Loading branch information
Showing
2 changed files
with
24 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,19 @@ | ||
| --TEST-- | ||
| Bug #73631 (Memory leak due to invalid wddx stack processing) | ||
| --SKIPIF-- | ||
| <?php if (!extension_loaded("wddx")) print "skip"; ?> | ||
| --FILE-- | ||
| <?php | ||
| $xml = <<<EOF | ||
| <?xml version="1.0" ?> | ||
| <wddxPacket version="1.0"> | ||
| <number>1234</number> | ||
| <binary><boolean/></binary> | ||
| </wddxPacket> | ||
| EOF; | ||
| $wddx = wddx_deserialize($xml); | ||
| var_dump($wddx); | ||
| ?> | ||
| --EXPECTF-- | ||
| int(1234) | ||
|
|
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