summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-03-28 23:45:04 -0700
committerStanislav Malyshev <stas@php.net>2016-03-28 23:45:04 -0700
commit0b92349da714b5cb1987e7454cc06b99dc44089f (patch)
treeac7e4a5c71f59bece6b112a4c3efa7b55be63075
parenta50e1cb5a325b33a27d1059ec8b2a68516362413 (diff)
parent9c19a08b9daed6bae3071dd25742f59a59618823 (diff)
downloadphp-git-0b92349da714b5cb1987e7454cc06b99dc44089f.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6.20
* PHP-5.5: Fixed bug #71704 php_snmp_error() Format String Vulnerability
-rw-r--r--ext/snmp/snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 7ec1301787..d5e21f911c 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -531,7 +531,7 @@ static void php_snmp_error(zval *object, const char *docref TSRMLS_DC, int type,
}
if (object && (snmp_object->exceptions_enabled & type)) {
- zend_throw_exception_ex(php_snmp_exception_ce, type TSRMLS_CC, snmp_object->snmp_errstr);
+ zend_throw_exception_ex(php_snmp_exception_ce, type TSRMLS_CC, "%s", snmp_object->snmp_errstr);
} else {
va_start(args, format);
php_verror(docref, "", E_WARNING, format, args TSRMLS_CC);