From 8e3c2015dc71271523f502bed7afdbb2aeb0acae Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 9 Mar 2014 21:12:19 +0100 Subject: [PATCH] - fix #66869, Invalid 2nd argument crashes imageaffinematrixget --- ext/gd/gd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 0c4a0b36ff..1058eaee5c 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -5298,6 +5298,7 @@ PHP_FUNCTION(imageaffinematrixget) double x, y; if (Z_TYPE_P(options) != IS_ARRAY) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Array expected as options"); + RETURN_FALSE; } if (zend_hash_find(HASH_OF(options), "x", sizeof("x"), (void **)&tmp) != FAILURE) { if (Z_TYPE_PP(tmp) != IS_DOUBLE) { -- 2.50.1