forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'PHP-7.0.3' into PHP-7.0
* PHP-7.0.3: (35 commits) fix tests update NEWS fix tests fix NEWS Update NEWS update NEWS Fixed bug #71475: openssl_seal() uninitialized memory usage Fixed bug #71488: Stack overflow when decompressing tar archives fix tests fix wrong gc sequence revert the API string as well update NEWS Revert "Fix #70720" sync NEWS reset ext/session to the state of 7.0.2 update NEWS update NEWS add missing headers for SIZE_MAX backport the escapeshell* functions hardening branch add tests ... Conflicts: configure.in ext/session/tests/bug69111.phpt main/php_version.h
- Loading branch information
Showing
49 changed files
with
619 additions
and
320 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,16 @@ | ||
--TEST-- | ||
Bug #71475: openssl_seal() uninitialized memory usage | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded("openssl")) die("skip openssl not loaded"); | ||
?> | ||
--FILE-- | ||
<?php | ||
$_ = str_repeat("A", 512); | ||
openssl_seal($_, $_, $_, array_fill(0,64,0)); | ||
?> | ||
DONE | ||
--EXPECTF-- | ||
|
||
Warning: openssl_seal(): not a public key (1th member of pubkeys) in %s/bug71475.php on line %d | ||
DONE |
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,15 @@ | ||
--TEST-- | ||
Bug #71331 (Uninitialized pointer in phar_make_dirstream()) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("phar")) die("skip"); ?> | ||
--FILE-- | ||
<?php | ||
$p = new PharData(__DIR__."/bug71331.tar"); | ||
?> | ||
DONE | ||
--EXPECTF-- | ||
Fatal error: Uncaught UnexpectedValueException: phar error: "%s/bug71331.tar" is a corrupted tar file (invalid entry size) in %s/bug71331.php:2 | ||
Stack trace: | ||
#0 %s/bug71331.php(2): PharData->__construct('%s') | ||
#1 {main} | ||
thrown in %s/bug71331.php on line 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--TEST-- | ||
Phar: bug #71354: Heap corruption in tar/zip/phar parser. | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("phar")) die("skip"); ?> | ||
--FILE-- | ||
<?php | ||
$p = new PharData(__DIR__."/bug71354.tar"); | ||
var_dump($p['aaaa']->getContent()); | ||
?> | ||
DONE | ||
--EXPECT-- | ||
string(0) "" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
Phar: bug #71391: NULL Pointer Dereference in phar_tar_setupmetadata() | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("phar")) die("skip"); ?> | ||
--FILE-- | ||
<?php | ||
// duplicate since the tar will change | ||
copy(__DIR__."/bug71391.tar", __DIR__."/bug71391.test.tar"); | ||
$p = new PharData(__DIR__."/bug71391.test.tar"); | ||
$p->delMetaData(); | ||
?> | ||
DONE | ||
--CLEAN-- | ||
<?php | ||
unlink(__DIR__."/bug71391.test.tar"); | ||
?> | ||
--EXPECT-- | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--TEST-- | ||
Phar: bug #71488: Stack overflow when decompressing tar archives | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("phar")) die("skip"); ?> | ||
--FILE-- | ||
<?php | ||
$p = new PharData(__DIR__."/bug71488.tar"); | ||
$newp = $p->decompress("test"); | ||
?> | ||
DONE | ||
--CLEAN-- | ||
<?php | ||
@unlink(__DIR__."/bug71488.test"); | ||
?> | ||
--EXPECT-- | ||
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
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
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
Oops, something went wrong.