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