PHP 4.0 Bug #6145: printf & sprintf crash cgi on big strings (!!!)

From: Date: Mon, 14 Aug 2000 10:40:05 +0000
Subject: PHP 4.0 Bug #6145: printf & sprintf crash cgi on big strings (!!!)
Groups: php.dev 
Request: Send a blank email to php-dev+get-28797@lists.php.net to get a copy of this message
From: d.i@gmx.net Operating system: Windows 2000 Pro PHP version: 4.0.1pl2 PHP Bug Type: Reproduceable crash Bug description: printf & sprintf crash cgi on big strings (!!!) This is a nasty one preventing my work to get done :( A simple printf("%250s",$dummystring) makes php.exe CRASH. I run that script by doing "php.exe -q test.php". Same thing you can do with $dummy = sprintf("%250s",$whatever); .. same effect. Is this a known problem? This sounds severe and for me as programmer it sounds like a buffer overrun, since smaller format-sizes (%50s) work perfect. Danijel Ilisin

« previous php.dev (#28797) next »