com php-src: Avoid uninitilized field access: ext/ffi/ffi.c
| From: | Dmitry Stogov | Date: | Mon, 17 Jun 2019 11:53:44 +0000 |
| Subject: | com php-src: Avoid uninitilized field access: ext/ffi/ffi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106838@lists.php.net to get a copy of this message | ||
Commit: eda916cc9880201944bd13fb0f517ccad248f8e0
Author: Dmitry Stogov <dmitry@zend.com> Mon, 17 Jun 2019 14:53:44 +0300
Parents: 1e0b0467b649b4854865e4bf70bcb3c805927611
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eda916cc9880201944bd13fb0f517ccad248f8e0
Log:
Avoid uninitilized field access
Changed paths:
M ext/ffi/ffi.c
Diff:
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index 6293964..1b016c0 100644
--- a/ext/ffi/ffi.c
+++ b/ext/ffi/ffi.c
@@ -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;