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 #72494 (imagecropauto out-of-bounds access) --EXTENSIONS-- gd --FILE-- <?php ..

Decoded Output download

--TEST--
Bug #72494 (imagecropauto out-of-bounds access)
--EXTENSIONS--
gd
--FILE--
<?php
require __DIR__ . '/func.inc';

$im = imagecreate(10,10);

trycatch_dump(
    fn() => imagecropauto($im, IMG_CROP_THRESHOLD, 0, 1337)
);

?>
--EXPECT--
!! [ValueError] imagecropauto(): Argument #4 ($color) must be greater than or equal to 0 when using the threshold mode

Did this file decode correctly?

Original Code

--TEST--
Bug #72494 (imagecropauto out-of-bounds access)
--EXTENSIONS--
gd
--FILE--
<?php
require __DIR__ . '/func.inc';

$im = imagecreate(10,10);

trycatch_dump(
    fn() => imagecropauto($im, IMG_CROP_THRESHOLD, 0, 1337)
);

?>
--EXPECT--
!! [ValueError] imagecropauto(): Argument #4 ($color) must be greater than or equal to 0 when using the threshold mode

Function Calls

None

Variables

None

Stats

MD5 2943f78dff03b371ef4473a7dc37271c
Eval Count 0
Decode Time 85 ms