#39661 [Fbk->Csd]: Crash when imploding null into sprintf
| From: | mark at temporal-solutions dot co dot uk | Date: | Tue, 28 Nov 2006 15:28:54 +0000 |
| Subject: | #39661 [Fbk->Csd]: Crash when imploding null into sprintf | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105557@lists.php.net to get a copy of this message | ||
ID: 39661
User updated by: mark at temporal-solutions dot co dot uk
Reported By: mark at temporal-solutions dot co dot uk
-Status: Feedback
+Status: Closed
Bug Type: Reproducible crash
Operating System: Windows XP SP2
PHP Version: 5.2.0
New Comment:
Confirming latest snapshot fixes this error.
Previous Comments:
------------------------------------------------------------------------
[2006-11-28 15:20:35] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-11-28 15:11:22] mark at temporal-solutions dot co dot uk
Description:
------------
Imploding an array containing a NULL as an argument to sprintf causes
php-cgi.exe crash with null pointer read under IIS5.1 w/ Windows XP SP2
Pro.
Reproduce code:
---------------
<?
$keys = array();
$keys[] = NULL;
sprintf('%s', implode(' ', $keys));
?>
Expected result:
----------------
Script execute and produce nothing.
Actual result:
--------------
CGI crash reading memory at 0x000000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39661&edit=1