diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-25 08:49:30 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-25 08:49:30 +0000 |
commit | 9992ef98cd97fc3ff95078d74f376fab4fe652e0 (patch) | |
tree | 9d6ff4afba2858505d23b3fcdffcc84afe102f5c | |
parent | 8b2030be91c7bef5215d3da71b91084fefe2eddd (diff) | |
download | rsyslog-9992ef98cd97fc3ff95078d74f376fab4fe652e0.tar.gz rsyslog-9992ef98cd97fc3ff95078d74f376fab4fe652e0.tar.xz rsyslog-9992ef98cd97fc3ff95078d74f376fab4fe652e0.zip |
bugfix: continue parsing if tag is oversize (discard oversize part) -
thanks to mclaughlin77@gmail.com for the patch
-rw-r--r-- | syslogd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1493,6 +1493,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, ':'); |