basic/calendarspec: set a limit on length of calendarspec component chains
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Mar 2018 09:12:48 +0000 (10:12 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 17 Mar 2018 07:59:25 +0000 (08:59 +0100)
commit74353158121f9b4b39a5e6990d103022bb51422f
tree4dee133f5a17d6699f92efdf941c3adb6a534072
parent5ee45c6d63c63c6ef9880c71c2070611e5dc8d2d
basic/calendarspec: set a limit on length of calendarspec component chains

We probably should allow very deep calls of our recursive functions. Let's add
a limit to avoid resource exhaustion. 240 is 10 per hour (if somebody is using
this for time based triggers...), so it should be more than enough for most use
cases, and is conveniently below the 250 stack limit in msan.

oss-fuzz #6917.
src/basic/calendarspec.c
test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6917 [new file with mode: 0644]
test/fuzz-regressions/meson.build