Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #76532 (Integer overflow and excessive memory usage in mb_strimwidth) --EXTEN..
Decoded Output download
--TEST--
Bug #76532 (Integer overflow and excessive memory usage in mb_strimwidth)
--EXTENSIONS--
mbstring
--FILE--
<?php
$string_to_trim = '';
$width = 2147483647;
var_dump(mb_strimwidth($string_to_trim, 0, $width));
?>
--EXPECT--
string(81) ""
Did this file decode correctly?
Original Code
--TEST--
Bug #76532 (Integer overflow and excessive memory usage in mb_strimwidth)
--EXTENSIONS--
mbstring
--FILE--
<?php
$string_to_trim = '';
$width = 2147483647;
var_dump(mb_strimwidth($string_to_trim, 0, $width));
?>
--EXPECT--
string(81) ""
Function Calls
mb_strimwidth | 1 |
Stats
MD5 | 83af3ce28b791d5fa297eb64c5cb3d24 |
Eval Count | 0 |
Decode Time | 97 ms |