#28808 [Fbk->NoF]: convert_uudecode() crashes CGI version

From: Date: Mon, 13 Sep 2004 23:00:07 +0000
Subject: #28808 [Fbk->NoF]: convert_uudecode() crashes CGI version
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66154@lists.php.net to get a copy of this message
ID: 28808 Updated by: php-bugs@lists.php.net Reported By: gphemsley at users dot sourceforge dot net -Status: Feedback +Status: No Feedback Bug Type: CGI related Operating System: Windows XP Professional SP1 PHP Version: 5.0.0RC3 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [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&#9792;&#9578;&#8597;* in D:\Program Files\Apache Group\Apache \htdocs\uudecode.php5 on line 13 PHP Notice: Undefined variable: /a&#9792;&#9578;&#8597;* 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

« previous php.bugs (#66154) next »