summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-03-16 09:48:40 +0100
committerAnatol Belski <ab@php.net>2016-03-16 09:48:40 +0100
commit6e25966544fb1d2f3d7596e060ce9c9269bbdcf8 (patch)
treefa1b4d9b95965d0612e133d3f06efb9a5bf46c5f
parentffe82dd775c2fc4b76e2339f893d2fd1d27bf916 (diff)
downloadphp-git-6e25966544fb1d2f3d7596e060ce9c9269bbdcf8.tar.gz
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 be8888c348..67e39f1645 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -530,7 +530,7 @@ static void php_snmp_error(zval *object, const char *docref, int type, const cha
}
if (object && (snmp_object->exceptions_enabled & type)) {
- zend_throw_exception_ex(php_snmp_exception_ce, type, snmp_object->snmp_errstr);
+ zend_throw_exception_ex(php_snmp_exception_ce, type, "%s", snmp_object->snmp_errstr);
} else {
va_start(args, format);
php_verror(docref, "", E_WARNING, format, args);