xref: /PHP-7.3/ext/gd/tests/bug72730.phpt (revision b746e698)
1--TEST--
2Bug #72730: imagegammacorrect allows arbitrary write access
3--SKIPIF--
4<?php
5if (!function_exists("imagecreatetruecolor")) die("skip");
6?>
7--FILE--
8<?php
9$img =  imagecreatetruecolor(1, 1);
10imagegammacorrect($img, -1, 1337);
11?>
12DONE
13--EXPECTF--
14Warning: imagegammacorrect(): Gamma values should be positive in %sbug72730.php on line %d
15DONE
16