xref: /PHP-8.0/ext/gd/tests/bug72298.phpt (revision c5401854)
1--TEST--
2Bug #72298: pass2_no_dither out-of-bounds access
3--SKIPIF--
4<?php
5    if (!extension_loaded('gd')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9$img = imagecreatetruecolor (1 , 1);
10imagecolortransparent($img, 0);
11imagetruecolortopalette($img, false, 4);
12?>
13DONE
14--EXPECT--
15DONE
16