Test: /ext/phar/tests/bug72321.phpt - Version 7.4.19        

Security #72321 invalid free in phar_extract_file()
Submitted: 2016-06-03 06:43:38 Modified: 2016-09-21 12:17:05
From: hji Assigned: stas
Status: Closed Package: PHAR related
PHP Version: 5.6.22 OS:

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
001+ Warning: mkdir(): File exists in %s/bug72321.php on line 3 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/root/buildroot/php-src-php-7.4.30/ext/phar/tests/72321_1.zip" failed: Cannot extract "AAAAAAAAxxxxBBBBCCCCCCCCxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" to "test72321/AAAAAAAAxxxxBBBBCCCCCCCCxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", path already exists in %s/bug72321.php:5 001- Warning: PharData::extractTo(): %s in %sbug72321.php on line %d 002- Extraction from phar "%s72321_2.zip" failed: Cannot extract "AAAAAAAAxxxxBBBBCCCCCCCCxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/b/c", could not create directory "test72321/AAAAAAAAxxxxBBBBCCCCCCCCxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/b" 003- DONE 004+ Stack trace: 005+ #0 %s/bug72321.php(5): PharData->extractTo('test72321') 006+ #1 {main} 007+ thrown in %s/bug72321.php on line 5