-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #76164: exif_read_data zend_mm_heap corrupted
We must not release parsed parameters ourselves, since this is already done by the engine.
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 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
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,16 @@ | ||
--TEST-- | ||
Bug #76164 (exif_read_data zend_mm_heap corrupted) | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded('exif')) die('skip exif extension not available'); | ||
?> | ||
--FILE-- | ||
<?php | ||
$var1 = 'nonexistentfile'; | ||
$var2 = 2200000000; | ||
@exif_read_data($var1, $var2); // we're not interested in the warning, here | ||
$var2 = 1; | ||
?> | ||
===DONE=== | ||
--EXPECT-- | ||
===DONE=== |