summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-03-16 09:48:40 +0100
committerStanislav Malyshev <stas@php.net>2016-03-28 23:42:19 -0700
commit9c19a08b9daed6bae3071dd25742f59a59618823 (patch)
tree6ca5baf77eaab17cfbb489ac264f60a50c5ee173
parent3dd82caf57d48973e98b02e5c1058ab36b30043b (diff)
downloadphp-git-9c19a08b9daed6bae3071dd25742f59a59618823.tar.gz
Fixed bug #71704 php_snmp_error() Format String Vulnerability
Conflicts: ext/snmp/snmp.c
-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 f7c99c13f3..6c1da4cc55 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -533,7 +533,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);