com php-src: Fixed bug #71704 php_snmp_error() Format String Vulnerability: ext/snmp/snmp.c
| From: | Stanislav Malyshev | Date: | Tue, 29 Mar 2016 06:42:19 +0000 |
| Subject: | com php-src: Fixed bug #71704 php_snmp_error() Format String Vulnerability: ext/snmp/snmp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91499@lists.php.net to get a copy of this message | ||
Commit: 9c19a08b9daed6bae3071dd25742f59a59618823
Author: Anatol Belski <ab@php.net> Wed, 16 Mar 2016 09:48:40 +0100
Committer: Stanislav Malyshev <stas@php.net> Mon, 28 Mar 2016 23:42:19 -0700
Parents: 3dd82caf57d48973e98b02e5c1058ab36b30043b
Branches: PHP-5.5 PHP-5.6 PHP-5.6.20
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9c19a08b9daed6bae3071dd25742f59a59618823
Log:
Fixed bug #71704 php_snmp_error() Format String Vulnerability
Conflicts:
ext/snmp/snmp.c
Bugs:
https://bugs.php.net/71704
Changed paths:
M ext/snmp/snmp.c
Diff:
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index f7c99c1..6c1da4c 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);