diff options
author | Stanislav Malyshev <stas@php.net> | 2016-03-28 23:45:04 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-03-28 23:45:04 -0700 |
commit | 0b92349da714b5cb1987e7454cc06b99dc44089f (patch) | |
tree | ac7e4a5c71f59bece6b112a4c3efa7b55be63075 | |
parent | a50e1cb5a325b33a27d1059ec8b2a68516362413 (diff) | |
parent | 9c19a08b9daed6bae3071dd25742f59a59618823 (diff) | |
download | php-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.c | 2 |
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); |