summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug72298.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/bug72298.phpt')
-rw-r--r--ext/gd/tests/bug72298.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/gd/tests/bug72298.phpt b/ext/gd/tests/bug72298.phpt
new file mode 100644
index 0000000000..7fba241ed1
--- /dev/null
+++ b/ext/gd/tests/bug72298.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #72298: pass2_no_dither out-of-bounds access
+--SKIPIF--
+<?php
+ if (!extension_loaded('gd')) die("skip gd extension not available\n");
+?>
+--FILE--
+<?php
+$img = imagecreatetruecolor (1 , 1);
+imagecolortransparent($img, 0);
+imagetruecolortopalette($img, false, 4);
+?>
+DONE
+--EXPECT--
+DONE \ No newline at end of file