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?> 7--FILE-- 8<?php 9 10$img = imagecreatetruecolor(13, 1007); 11 12imagecolortransparent($img, -10066304); 13imagetruecolortopalette($img, TRUE, 3); 14imagescale($img, 1, 65535); 15?> 16==DONE== 17--EXPECT-- 18==DONE== 19