File php-CVE-2016-4071.patch of Package php5.openSUSE_Leap_42.1_Update
X-Git-Url: https://72.52.91.13:4430/?p=php-src.git;a=blobdiff_plain;f=ext%2Fsnmp%2Fsnmp.c;h=67e39f1645c28ec410dc271439c9d1f8a8071a12;hp=be8888c348ccd3979180bb2d620b487632eb3731;hb=6e25966544fb1d2f3d7596e060ce9c9269bbdcf8;hpb=ffe82dd775c2fc4b76e2339f893d2fd1d27bf916
Index: ext/snmp/snmp.c
===================================================================
--- ext/snmp/snmp.c.orig 2016-04-27 10:46:00.213198781 +0200
+++ ext/snmp/snmp.c 2016-04-27 10:47:19.161200854 +0200
@@ -533,7 +533,7 @@
}
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);