]> granicus.if.org Git - php/commit
Fix #73868: DOS vulnerability in gdImageCreateFromGd2Ctx()
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 16 Aug 2016 16:23:36 +0000 (18:23 +0200)
committerAnatol Belski <ab@php.net>
Tue, 17 Jan 2017 08:30:43 +0000 (09:30 +0100)
commitf1b2afc9d9e77edf41804f5dfc4e2069d8a12975
tree8871bccd644907fcd2287f482e30c769c031ac8c
parent6477bb724e0c4e95dfc8f315cac4b7e7a692b0f8
Fix #73868: 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.

(cherry picked from commit cdb648dc4115ce0722f3cc75e6a65115fc0e56ab)
ext/gd/libgd/gd_gd2.c
ext/gd/tests/bug73868.gd2 [new file with mode: 0644]
ext/gd/tests/bug73868.phpt [new file with mode: 0644]