}
_pure_ static bool chain_valid(CalendarComponent *c, int from, int to, bool end_of_month) {
+ assert(to >= from);
+
if (!c)
return true;
if (c->start < from || c->start > to)
return false;
+ /* Avoid overly large values that could cause overflow */
+ if (c->repeat > to - from)
+ return false;
+
/*
* c->repeat must be short enough so at least one repetition may
* occur before the end of the interval. For dates scheduled
--- /dev/null
+timer
+[Timer]
+OnCalendar=*-31/2147483640
\ No newline at end of file
fuzz-unit-file/oss-fuzz-6908
fuzz-unit-file/oss-fuzz-6897
fuzz-unit-file/oss-fuzz-6897-evverx
+ fuzz-unit-file/oss-fuzz-7004
'''.split()