]> granicus.if.org Git - php/commitdiff
Avoid uninitilized field access
authorDmitry Stogov <dmitry@zend.com>
Mon, 17 Jun 2019 11:53:44 +0000 (14:53 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 17 Jun 2019 11:53:44 +0000 (14:53 +0300)
ext/ffi/ffi.c

index 6293964d801612b72216bca583b0e84610c76e9a..1b016c00a606ded3e9b0aed07be1acc82b9a743d 100644 (file)
@@ -5806,6 +5806,7 @@ void zend_ffi_make_func_type(zend_ffi_dcl *dcl, HashTable *args, zend_ffi_dcl *n
                                zend_hash_destroy(args);
                                pefree(args, FFI_G(persistent));
                        }
+                       type->func.args = NULL;
                        _zend_ffi_type_dtor(type);
                        zend_ffi_parser_error("unsupported calling convention line %d", FFI_G(line));
                        break;