]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-calendarspec.c
calendarspec: add upper bound on year
authorDouglas Christman <DouglasChristman@gmail.com>
Tue, 22 Nov 2016 17:57:07 +0000 (12:57 -0500)
committerDouglas Christman <DouglasChristman@gmail.com>
Wed, 23 Nov 2016 17:28:00 +0000 (12:28 -0500)
commitf6e7d66b9f1db07ae80af3d75dabaf95f7f43a15
treecd6fdc2233808565aaea9e75b5817d71c28f3a47
parentfadc06bb8166b7ee494ed90b054f083ac4db4e11
calendarspec: add upper bound on year

Stop looking for matches after MAX_YEAR so impossible dates like
"*-02-30" and "*-04-31" don't cause an infinite loop.
src/basic/calendarspec.c
src/test/test-calendarspec.c