1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

Fixed bug #71704 php_snmp_error() Format String Vulnerability

Conflicts:
	ext/snmp/snmp.c
This commit is contained in:
Anatol Belski
2016-03-16 09:48:40 +01:00
committed by Stanislav Malyshev
parent 3dd82caf57
commit 9c19a08b9d

View File

@@ -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);