summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-05-30 08:56:50 +0100
committerJoe Watkins <krakjoe@php.net>2016-05-30 08:56:50 +0100
commit1690dcb827e2b50eb575b1c6acadab0b8f248723 (patch)
treec4ed46b356566e019995dddd5eee7ab043d4dfcd /ext
parent0c5bd4d445ab09fd457882c06eff436eebb4c9bf (diff)
downloadphp-git-1690dcb827e2b50eb575b1c6acadab0b8f248723.tar.gz
fix #72155 (use-after-free caused by get_zval_xmlrpc_type)
Diffstat (limited to 'ext')
-rw-r--r--ext/xmlrpc/xmlrpc-epi-php.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c
index ea62bdc9a9..8daf26257e 100644
--- a/ext/xmlrpc/xmlrpc-epi-php.c
+++ b/ext/xmlrpc/xmlrpc-epi-php.c
@@ -1368,10 +1368,10 @@ XMLRPC_VALUE_TYPE get_zval_xmlrpc_type(zval* value, zval* newvalue) /* {{{ */
if ((type == xmlrpc_base64 && Z_TYPE_P(value) == IS_OBJECT) || type == xmlrpc_datetime) {
if ((val = zend_hash_str_find(Z_OBJPROP_P(value), OBJECT_VALUE_ATTR, sizeof(OBJECT_VALUE_ATTR) - 1)) != NULL) {
- ZVAL_COPY_VALUE(newvalue, val);
+ ZVAL_COPY(newvalue, val);
}
} else {
- ZVAL_COPY_VALUE(newvalue, value);
+ ZVAL_COPY(newvalue, value);
}
}
}