From 6b2f3da3b511c842465ea4d0826ea915cc1a11fe Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 25 Mar 2008 08:52:11 +0000 Subject: bugfix: continue parsing if tag is oversize (discard oversize part) - thanks to mclaughlin77@gmail.com for the patch --- syslogd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index a28c2566..a039eeed 100644 --- a/syslogd.c +++ b/syslogd.c @@ -3159,6 +3159,11 @@ static int parseLegacySyslogMsg(msg_t *pMsg, int flags) rsCStrAppendChar(pStrB, *p2parse++); ++iCnt; } + if (iCnt == 32) { + while(*p2parse && *p2parse != ':' && *p2parse != ' ') { + ++p2parse; + } + } if(*p2parse == ':') { ++p2parse; rsCStrAppendChar(pStrB, ':'); -- cgit v1.2.3