Crash due to long chat lines + fix
Brought to you by:
shmupsik
If you got logs with very long chat lines, you may enctounter module to fail while parsing certain logs with tholse long chat lines. Of course that causes whole eggdrop to die.
Looks like the culprit is the buffer oveflow in:
fileoperations.c
in function
static void str_write(FILE *file, char *fstr, ... )
just change in that function
int size=256;
to
int size =1024;
and recompile module, and then install it,
Remeber to fully restart the eddrop - simple .reload or .rehash is not enough.
Tested on eggdrop-1.6.19, actually I think 512 would be enough, haven't time to test it well.
Possible solution: https://sourceforge.net/p/logs2html/bugs/3/
Ticket moved from /p/logs2html/patches/2/