mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
15 lines
350 B
PHP
15 lines
350 B
PHP
--TEST--
|
|
Bug #72730: imagegammacorrect allows arbitrary write access
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists("imagecreatetruecolor")) die("skip");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$img = imagecreatetruecolor(1, 1);
|
|
imagegammacorrect($img, -1, 1337);
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
Warning: imagegammacorrect(): Gamma values should be positive in %sbug72730.php on line %d
|
|
DONE
|