]> git.ipfire.org Git - thirdparty/sarg.git/commit
Limit the maximum length of a text line
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 08:51:15 +0000 (10:51 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 08:51:15 +0000 (10:51 +0200)
commitcdf22cd3be2aea6047d7b4962b83d01bed83d8f7
tree8edbd7b81a679a49347f04a60471154e7079862f
parent110ed1b4cbbd970c4cab5c96f15861eb85e1a774
Limit the maximum length of a text line

To prevent sarg from filling up the memory and waking up the OOM killer
while reading an invalid or corrupted log file, the longest line sarg
will accept before aborting is 10MB long. The limit is arbitrary.
longline.c