ID: 51105 Updated by: [email protected] Reported By: r3d dot w0rm at yahoo dot com -Status: Open +Status: Feedback Bug Type: Strings related Operating System: All PHP Version: 5.3.2RC2 New Comment:
Which processor and OS do you use? I get the expected fatal error here. Previous Comments: ------------------------------------------------------------------------ [2010-02-21 14:44:34] r3d dot w0rm at yahoo dot com Description: ------------ PHP str_repeat() Function Integer Overflow AUTHOR : Sina Yazdanmehr(R3d.W0rm) Discovered by : Sina Yazdanmehr (R3d.W0rm) Our Site : http://IrCrash.com Our Forums : http://ircrash.com/persian/ My Official WebSite : http://R3dW0rm.ir IRCRASH Team Members : Khashayar Fereidani - R3d.w0rm (Sina Yazdanmehr) Reproduce code: --------------- <?php //www.IrCrash.com //By : R3d.W0rm $str1 = str_repeat('0x0x0x0x',999999999); $str2 = str_repeat($str,1); ?> Expected result: ---------------- Fatal error: Possible integer overflow in memory allocation (8 * 999999999 + 1) in F:\Program Files\EasyPHP-5.3.1\www\over.php on line 4 Fatal error: Possible integer overflow in memory allocation (8 * 999999999 + 1) in /var/www/html/over.php on line 4 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=51105&edit=1
