summaryrefslogtreecommitdiff
path: root/tests/gd2/too_few_image_data.gd2
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-08-16 18:23:36 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-12-13 15:33:42 +0100
commitfe9ed49dafa993e3af96b6a5a589efeea9bfb36f (patch)
tree96e1870f69de8975d3fc6c2407807c075059a70b /tests/gd2/too_few_image_data.gd2
parent60bfb401ad5a4a8ae995dcd36372fe15c71e1a35 (diff)
downloadlibgd-fe9ed49dafa993e3af96b6a5a589efeea9bfb36f.tar.gz
Fix DOS vulnerability in gdImageCreateFromGd2Ctx()
We must not pretend that there are image data if there are none. Instead we fail reading the image file gracefully.
Diffstat (limited to 'tests/gd2/too_few_image_data.gd2')
-rw-r--r--tests/gd2/too_few_image_data.gd2bin0 -> 1050 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/gd2/too_few_image_data.gd2 b/tests/gd2/too_few_image_data.gd2
new file mode 100644
index 0000000..1c797d1
--- /dev/null
+++ b/tests/gd2/too_few_image_data.gd2
Binary files differ