]> git.ipfire.org Git - thirdparty/sarg.git/commit
Validate the year extracted from a parsed log file
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Tue, 17 Nov 2015 18:30:45 +0000 (19:30 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Tue, 17 Nov 2015 18:30:45 +0000 (19:30 +0100)
commitcb3cc14719b05693d76c461b0b772507068ac875
tree1b77cde5a5171ff4412f43fafc8cdbb23ec39cd9
parent1b0df6d72c242f18c4028134b599a31153bcc761
Validate the year extracted from a parsed log file

A parsed log file name contains the date range covering the log content in
a form like sarg-15062015_0100-15062015_0101.log.gz.

The date was insufficiently validated as any date below 1900 produces
an integer overflow.
util.c