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 #72928 - Out of bound when verify signature of zip phar in ph…
…ar_parse_zipfile (cherry picked from commit 19484ab)
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
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,18 @@ | ||
| --TEST-- | ||
| Phar: #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile) | ||
| --SKIPIF-- | ||
| <?php if (!extension_loaded("phar")) die("skip"); ?> | ||
| --FILE-- | ||
| <?php | ||
| chdir(__DIR__); | ||
| try { | ||
| $phar = new PharData('bug72928.zip'); | ||
| var_dump($phar); | ||
| } catch(UnexpectedValueException $e) { | ||
| print $e->getMessage()."\n"; | ||
| } | ||
| ?> | ||
| DONE | ||
| --EXPECTF-- | ||
| phar error: signature cannot be read in zip-based phar "%sbug72928.zip" | ||
| DONE |
Binary file not shown.
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