#28808 [Opn]: convert_uudecode() crashes CGI version
| From: | gphemsley at users dot sourceforge dot net | Date: | Wed, 16 Jun 2004 16:10:35 +0000 |
| Subject: | #28808 [Opn]: convert_uudecode() crashes CGI version | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60998@lists.php.net to get a copy of this message | ||
ID: 28808
User updated by: gphemsley at users dot sourceforge dot net
Reported By: gphemsley at users dot sourceforge dot net
Status: Open
Bug Type: CGI related
Operating System: Windows XP Professional SP1
PHP Version: 5.0.0RC3
New Comment:
I was hoping there were attachments here, but I can't find any. Here
are the three files mentioned above:
http://www.music-hq.net/~gphemsley/PHP/3nCryPt.enc
http://www.music-hq.net/~gphemsley/PHP/uudecode_appcompat.txt
http://www.music-hq.net/~gphemsley/PHP/uudecode_php-cgi.exe.mdmp
Previous Comments:
------------------------------------------------------------------------
[2004-06-16 18:06:27] gphemsley at users dot sourceforge dot net
Description:
------------
convert_uudecode() crashes the CGI version of PHP 5.0.0RC3, seemingly
trying to parse its contents as PHP code.
Reproduce code:
---------------
<?php
// Temporary
$_REQUEST['file'] = 'C:\\Documents and Settings\\Gordon Hemsley\\Local
Settings\\Temp\\3nCryPt\\3nCryPt.enc';
if( isset( $_REQUEST['file'] ) )
{
print "<pre>\n";
foreach( file( $_REQUEST['file'] ) as $line )
{
print htmlentities( convert_uudecode( $line ) );
}
print "</pre>\n";
}
?>
Expected result:
----------------
A decoded version of the file that I provided it.
Actual result:
--------------
It spits out these lines and then dies (causing the Windows Error
Reporting window to pop up):
PHP Notice: Undefined variable: /a♀╪↕* in
D:\Program Files\Apache Group\Apache
\htdocs\uudecode.php5 on line 13
PHP Notice: Undefined variable: /a♀╪↕* in
D:\Program Files\Apache Group\Apache
\htdocs\uudecode.php5 on line 13
The error reporting data included this:
szAppName : php-cgi.exe szAppVer : 5.0.0.0 szModName :
ntdll.dll
szModVer : 5.1.2600.1217 offset : 00033aed
And 2 files.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28808&edit=1