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 #70052 (getimagesize() fails for very large and very small WBMP) --FILE-- <?p..

Decoded Output download

--TEST--
Bug #70052 (getimagesize() fails for very large and very small WBMP)
--FILE--
<?php
var_dump(getimagesize(__DIR__ . '/bug70052_1.wbmp'));
var_dump(getimagesize(__DIR__ . '/bug70052_2.wbmp'));
?>
--EXPECT--
bool(false)
array(5) {
  [0]=>
  int(3)
  [1]=>
  int(3)
  [2]=>
  int(15)
  [3]=>
  string(20) "width="3" height="3""
  ["mime"]=>
  string(18) "image/vnd.wap.wbmp"
}

Did this file decode correctly?

Original Code

--TEST--
Bug #70052 (getimagesize() fails for very large and very small WBMP)
--FILE--
<?php
var_dump(getimagesize(__DIR__ . '/bug70052_1.wbmp'));
var_dump(getimagesize(__DIR__ . '/bug70052_2.wbmp'));
?>
--EXPECT--
bool(false)
array(5) {
  [0]=>
  int(3)
  [1]=>
  int(3)
  [2]=>
  int(15)
  [3]=>
  string(20) "width="3" height="3""
  ["mime"]=>
  string(18) "image/vnd.wap.wbmp"
}

Function Calls

None

Variables

None

Stats

MD5 2e6648a7d11c45fd20ddd1b0b4e3c12a
Eval Count 0
Decode Time 94 ms