webPhar() generates headers with trailing NUL bytes

Bug #61184 Phar::webPhar() generates headers with trailing NUL bytes
Submitted: 2012-02-25 12:56 UTC Modified: 2012-03-05 01:31 UTC
From: nikic@php.net Assigned: nikic (profile)
Status: Closed Package: PHAR related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None

 [2012-02-25 12:56 UTC] nikic@php.net

Description:
------------
Phar::webPhar() generates invalid 403, 404 and 301 headers, because the length of 
the headers in computed incorrectly, resulting in trailing NUL bytes to be sent.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2012-02-25 12:57 UTC] nikic@php.net

-Status: Open +Status: Assigned -Assigned To: +Assigned To: nikic

 [2012-02-25 13:00 UTC] nikic@php.net

-Summary: Phar::webPhar() generated headers with trailing NUL bytes +Summary: Phar::webPhar() generates headers with trailing NUL bytes

 [2012-03-05 01:31 UTC] stas@php.net

-Status: Assigned +Status: Closed