xref: /php-src/ext/gd/tests/bug72512_0.phpt (revision a375d547)
1--TEST--
2Bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access, var 0
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7    if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) {
8        die("skip test requires GD 2.2.2 or higher");
9    }
10?>
11--FILE--
12<?php
13
14$img = imagecreatetruecolor(13, 1007);
15
16imagecolortransparent($img, -10066304);
17imagetruecolortopalette($img, TRUE, 3);
18imagescale($img, 1, 65535);
19?>
20==DONE==
21--EXPECT--
22==DONE==
23