diff options
author | Anatol Belski <ab@php.net> | 2016-03-16 09:48:40 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-03-16 09:48:40 +0100 |
commit | 6e25966544fb1d2f3d7596e060ce9c9269bbdcf8 (patch) | |
tree | fa1b4d9b95965d0612e133d3f06efb9a5bf46c5f | |
parent | ffe82dd775c2fc4b76e2339f893d2fd1d27bf916 (diff) | |
download | php-git-6e25966544fb1d2f3d7596e060ce9c9269bbdcf8.tar.gz |
Fixed bug #71704 php_snmp_error() Format String Vulnerability
-rw-r--r-- | ext/snmp/snmp.c | 2 |
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); |