#28808 [NoF->Csd]: convert_uudecode() crashes CGI version
ID: 28808
User updated by: gphemsley at users dot sourceforge dot net
Reported By: gphemsley at users dot sourceforge dot net
-Status: No Feedback
+Status: Closed
Bug Type: CGI related
Operating System: Windows XP Professional SP1
PHP Version: 5.0.0RC3
New Comment:
This was fixed by PHP 5.0.2, though I don't know by what. All I know is
that I finally looked again at the script that caused the bug and it
didn't crash PHP this time.
Previous Comments:
------------------------------------------------------------------------
[2004-09-14 01:00:06] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2004-09-06 14:37:06] nlopess@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2004-06-16 18:10:32] gphemsley at users dot sourceforge dot net
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
------------------------------------------------------------------------
[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
Thread (5 messages)