diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-14 17:21:50 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-14 17:21:50 +0100 |
commit | c0f5dd3fbf877799ac8fec4d00b2f2c69014b413 (patch) | |
tree | 93ad366c70f9013bb7298dd2cceedac2c6a31925 /parse.c | |
parent | 25a33416e9597087e16483859ecbdd6cdac2df64 (diff) | |
download | rsyslog-c0f5dd3fbf877799ac8fec4d00b2f2c69014b413.tar.gz rsyslog-c0f5dd3fbf877799ac8fec4d00b2f2c69014b413.tar.bz2 rsyslog-c0f5dd3fbf877799ac8fec4d00b2f2c69014b413.zip |
bugfix: potential segfault at startup with property-based filter
If the property name was followed by a space before the comma, rsyslogd
aborted on startup. Note that no segfault could happen if the initial
startup went well (this was a problem with the config parser).
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=381
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ rsRetVal parsDelimCStr(rsParsObj *pThis, cstr_t **ppCStr, char cDelim, int bTrim pC = rsCStrGetBufBeg(pThis->pCStr) + pThis->iCurrPos; - while(pThis->iCurrPos < rsCStrLen(pThis->pCStr) && *pC != cDelim && *pC != ' ') { + while(pThis->iCurrPos < rsCStrLen(pThis->pCStr) && *pC != cDelim) { CHKiRet(cstrAppendChar(pCStr, bConvLower ? tolower(*pC) : *pC)); ++pThis->iCurrPos; ++pC; |