mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 08:30:42 +01:00
bugfix: segfault due to invalid dynafile cache handling
Accidently, the old-style cache size parameter was used when the dynafile cache was created in a RainerScript action. If the old-style size was lower than the one actually set, this lead to misadressing when the size was overrun, and that could lead to all kinds of "interesting things", often in segfaults. closes: http://bugzilla.adiscon.com/show_bug.cgi?id=440 Conflicts: ChangeLog
This commit is contained in:
parent
adc8d62653
commit
c0e5c49526
@ -1,4 +1,13 @@
|
||||
----------------------------------------------------------------------------
|
||||
Version 7.2.8 [v7-stable] 2013-0?-??
|
||||
- bugfix: segfault due to invalid dynafile cache handling
|
||||
Accidently, the old-style cache size parameter was used when the
|
||||
dynafile cache was created in a RainerScript action. If the old-style
|
||||
size was lower than the one actually set, this lead to misadressing
|
||||
when the size was overrun, and that could lead to all kinds of
|
||||
"interesting things", often in segfaults.
|
||||
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=440
|
||||
----------------------------------------------------------------------------
|
||||
Version 7.2.7 [v7-stable] 2013-04-17
|
||||
- rsyslogd startup information is now properly conveyed back to init
|
||||
when privileges are beging dropped
|
||||
|
||||
@ -972,7 +972,7 @@ CODESTARTnewActInst
|
||||
// TODO: create unified code for this (legacy+v6 system)
|
||||
/* we now allocate the cache table */
|
||||
CHKmalloc(pData->dynCache = (dynaFileCacheEntry**)
|
||||
calloc(cs.iDynaFileCacheSize, sizeof(dynaFileCacheEntry*)));
|
||||
calloc(pData->iDynaFileCacheSize, sizeof(dynaFileCacheEntry*)));
|
||||
pData->iCurrElt = -1; /* no current element */
|
||||
}
|
||||
// TODO: add pData->iSizeLimit = 0; /* default value, use outchannels to configure! */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user