File rsyslog-CVE-2011-3200.bnc714658.patch of Package rsyslog.import5099

diff --git a/tools/pmrfc3164.c b/tools/pmrfc3164.c
index 635ca98..6d2d22b 100644
--- a/tools/pmrfc3164.c
+++ b/tools/pmrfc3164.c
@@ -177,7 +177,7 @@ CODESTARTparse
 		 * outputs so that only 32 characters max are used by default.
 		 */
 		i = 0;
-		while(lenMsg > 0 && *p2parse != ':' && *p2parse != ' ' && i < CONF_TAG_MAXSIZE) {
+		while(lenMsg > 0 && *p2parse != ':' && *p2parse != ' ' && i < CONF_TAG_MAXSIZE - 2) {
 			bufParseTAG[i++] = *p2parse++;
 			--lenMsg;
 		}
openSUSE Build Service is sponsored by