com php-src: Merge branch 'PHP-7.4': ext/com_dotnet/com_han dlers.c
| From: | Christoph Michael Becker | Date: | Sat, 19 Oct 2019 09:52:38 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.4': ext/com_dotnet/com_han dlers.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108951@lists.php.net to get a copy of this message | ||
Commit: b00cc3378c0ff3a127d1f162bd005cc33004ecb0
Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 19 Oct 2019 11:52:38 +0200
Parents: 49327e2e15b131a04ca3edc1b95bb89abde58337 ee6a71ca7350c5c9730275a264a9c173940b071b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b00cc3378c0ff3a127d1f162bd005cc33004ecb0
Log:
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #78694: Appending to a variant array causes segfault
Bugs:
https://bugs.php.net/78694
Changed paths:
MM ext/com_dotnet/com_handlers.c
Diff:
diff --cc ext/com_dotnet/com_handlers.c
index 1036abb977c,fe39e2f9e04...1a5d9c30461
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@@ -120,8 -122,13 +120,13 @@@ static void com_write_dimension(zend_ob
VARIANT v;
HRESULT res;
- obj = CDNO_FETCH(object);
+ obj = (php_com_dotnet_object*) object;
+ if (offset == NULL) {
+ php_com_throw_exception(DISP_E_BADINDEX, "appending to variants is not supported");
+ return;
+ }
+
if (V_VT(&obj->v) == VT_DISPATCH) {
ZVAL_COPY_VALUE(&args[0], offset);
ZVAL_COPY_VALUE(&args[1], value);