diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-07-29 16:08:03 +0200 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2019-07-29 13:18:27 -0700 |
commit | cd1101e8c87aa175c2d5e87ddec656e50ef4ab5d (patch) | |
tree | 97b8a656d38fdf0cae963c10b3700a53a008e547 /ext/phar/tests | |
parent | 42e8b85d94ba11db13ca90b2dd53c17b2d6938df (diff) | |
download | php-git-cd1101e8c87aa175c2d5e87ddec656e50ef4ab5d.tar.gz |
Fix #77919: Potential UAF in Phar RSHUTDOWN
We have to properly clean up in case phar_flush() is failing.
We also make the expectation of the respective test case less liberal
to avoid missing such bugs in the future.
Diffstat (limited to 'ext/phar/tests')
-rw-r--r-- | ext/phar/tests/bug71488.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/phar/tests/bug71488.phpt b/ext/phar/tests/bug71488.phpt index 9c58d89488..7f8f6c00af 100644 --- a/ext/phar/tests/bug71488.phpt +++ b/ext/phar/tests/bug71488.phpt @@ -15,4 +15,7 @@ DONE ?> --EXPECTF-- Fatal error: Uncaught BadMethodCallException: tar-based phar "%s/bug71488.test" cannot be created, link "%s" is too long for format in %sbug71488.php:%d -Stack trace:%A
\ No newline at end of file +Stack trace: +#0 %s(%d): PharData->decompress('test') +#1 {main} + thrown in %s on line %d |