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 #72730: imagegammacorrect allows arbitrary write access --EXTENSIONS-- gd --F..
Decoded Output download
--TEST--
Bug #72730: imagegammacorrect allows arbitrary write access
--EXTENSIONS--
gd
--FILE--
<?php
require __DIR__ . '/func.inc';
$img = imagecreatetruecolor(1, 1);
trycatch_dump(
fn() => imagegammacorrect($img, -1, 1337)
);
?>
--EXPECT--
!! [ValueError] imagegammacorrect(): Argument #2 ($input_gamma) must be greater than 0
Did this file decode correctly?
Original Code
--TEST--
Bug #72730: imagegammacorrect allows arbitrary write access
--EXTENSIONS--
gd
--FILE--
<?php
require __DIR__ . '/func.inc';
$img = imagecreatetruecolor(1, 1);
trycatch_dump(
fn() => imagegammacorrect($img, -1, 1337)
);
?>
--EXPECT--
!! [ValueError] imagegammacorrect(): Argument #2 ($input_gamma) must be greater than 0
Function Calls
None |
Stats
MD5 | f0db03e7242a817b5f3ef91ba78ca1d8 |
Eval Count | 0 |
Decode Time | 101 ms |