com php-src: Fixed bug #71704 php_snmp_error() Format String Vulnerability: ext/snmp/snmp.c
| From: | Stanislav Malyshev | Date: | Wed, 16 Mar 2016 08:48:40 +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-91510@lists.php.net to get a copy of this message | ||
Commit: 6e25966544fb1d2f3d7596e060ce9c9269bbdcf8
Author: Anatol Belski <ab@php.net> Wed, 16 Mar 2016 09:48:40 +0100
Parents: ffe82dd775c2fc4b76e2339f893d2fd1d27bf916
Branches: PHP-7.0.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6e25966544fb1d2f3d7596e060ce9c9269bbdcf8
Log:
Fixed bug #71704 php_snmp_error() Format String Vulnerability
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 be8888c..67e39f1 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);