]> granicus.if.org Git - php/commitdiff
- fix #66869, Invalid 2nd argument crashes imageaffinematrixget
authorPierre Joye <pierre.php@gmail.com>
Sun, 9 Mar 2014 20:12:19 +0000 (21:12 +0100)
committerPierre Joye <pierre.php@gmail.com>
Sun, 9 Mar 2014 20:12:19 +0000 (21:12 +0100)
ext/gd/gd.c

index 0c4a0b36ff2702112de434a87395ce2b6cc376a8..1058eaee5cd6467a7dc412afb31a7a928d02b728 100644 (file)
@@ -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) {