mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 14:20:42 +01:00
bugfix: off-by-one(two) bug in legacy syslog parser
This commit is contained in:
parent
9bea045e60
commit
1ca6cc236d
@ -1289,7 +1289,7 @@ int parseLegacySyslogMsg(msg_t *pMsg, int flags)
|
||||
* 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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user