xref: /PHP-5.5/ext/gd/tests/bug72512_1.phpt (revision b63d41e1)
1--TEST--
2Bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access, var 1
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9
10$img = imagecreatetruecolor(100, 100);
11imagecolortransparent($img, -1000000);
12imagetruecolortopalette($img, TRUE, 3);
13imagecolortransparent($img, 9);
14
15?>
16==DONE==
17--EXPECT--
18==DONE==
19