Test: /ext/phar/tests/bug69958.phpt - Version 5.6.12-dev        

Security #69958 Segfault in Phar::convertToData on invalid file
Submitted: 2015-06-29 01:47:48 Modified: 2015-08-09 08:51:12
From: stas Assigned: kaplan
Status: Closed Package: Reproducible crash
PHP Version: master-Git-2015-06-29 (Git) OS:

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ /home/travis/build/smalyshev/php-src/Zend/zend_hash.c(539) : ht=0x7fddded04d78 is inconsistent
002+ [Tue Jul 7 05:16:36 2015] Script: %s/bug69958.php'
003+ ---------------------------------------
004+ /home/travis/build/smalyshev/php-src/Zend/zend_execute.h(79) : Block 0x7fdddecffd10 status:
005+ /home/travis/build/smalyshev/php-src/Zend/zend_variables.c(37) : Actual location (location was relayed)
001- Fatal error: Uncaught exception 'BadMethodCallException' with message 'phar "%s/bug69958.tar" exists and must be unlinked prior to conversion' in %s/bug69958.php:%d
002- Stack trace:
003- #0 %s/bug69958.php(%d): PharData->convertToData(%d)
004- #1 {main}
005- thrown in %s/bug69958.php on line %d
006+ Beginning: Cached
007+ Freed (invalid)
008+ Start: OK
009+ End: OK
010+ ---------------------------------------
011+
4) (source: /home/travis/build/smalyshev/php-src/Zend/zend_execute.h:79) in Unknown on line 0
013+ /home/travis/build/smalyshev/php-src/main/streams/streams.c(530) : Stream of type 'STDIO' 0x7fdddecff7c0 (path:/home/travis/build/smalyshev/php-src/ext/phar/tests/bug69958.tar) was not closed