mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 20:20:41 +01:00
bugfix: recent patch to fix small memory leak could cause invalid free.
This could only happen during config file parsing.
This commit is contained in:
parent
4cb3e80152
commit
219336ec5a
@ -20,6 +20,8 @@ Version 4.6.2 [v4-stable] (rgerhards), 2010-03-??
|
||||
in proper retries.
|
||||
- bugfix: $omfileFlushOnTXEnd was turned on when set to off and vice
|
||||
versa due to an invalid check
|
||||
- bugfix: recent patch to fix small memory leak could cause invalid free.
|
||||
This could only happen during config file parsing.
|
||||
- bugfix(minor): handling of extremely large strings in dbgprintf() fixed
|
||||
Previously, it could lead to garbagge output and, in extreme cases, also
|
||||
to segfaults. Note: this was a problem only when debug output was
|
||||
|
||||
@ -377,7 +377,7 @@ CODESTARTtryResume
|
||||
ENDtryResume
|
||||
|
||||
BEGINdoAction
|
||||
char *psz; /* temporary buffering */
|
||||
char *psz = NULL; /* temporary buffering */
|
||||
register unsigned l;
|
||||
int iMaxLine;
|
||||
CODESTARTdoAction
|
||||
@ -454,7 +454,7 @@ CODESTARTdoAction
|
||||
}
|
||||
finalize_it:
|
||||
# ifdef USE_NETZIP
|
||||
if(psz != (char*) ppString[0]) {
|
||||
if((psz != NULL) && (psz != (char*) ppString[0])) {
|
||||
/* we need to free temporary buffer, alloced above - Naoya Nakazawa, 2010-01-11 */
|
||||
free(psz);
|
||||
}
|
||||
|
||||
@ -411,7 +411,7 @@ CODESTARTtryResume
|
||||
ENDtryResume
|
||||
|
||||
BEGINdoAction
|
||||
char *psz; /* temporary buffering */
|
||||
char *psz = NULL; /* temporary buffering */
|
||||
register unsigned l;
|
||||
int iMaxLine;
|
||||
CODESTARTdoAction
|
||||
@ -487,7 +487,7 @@ CODESTARTdoAction
|
||||
}
|
||||
finalize_it:
|
||||
# ifdef USE_NETZIP
|
||||
if(psz != (char*) ppString[0]) {
|
||||
if((psz != NULL) && (psz != (char*) ppString[0])) {
|
||||
/* we need to free temporary buffer, alloced above - Naoya Nakazawa, 2010-01-11 */
|
||||
free(psz);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user