#23 INTERVAL=0 causes infinite loop

closed
nobody
None
5
2011-06-04
2011-05-31
Kent
No

A rule such as this will cause an infinite loop when using a recurrence iterator:
RRULE:FREQ=WEEKLY;UNTIL=20110325T093000Z;INTERVAL=0;BYDAY=MO,TU,WE,TH,FR;WKST=SU

According to the RFC, "The INTERVAL rule part contains a positive integer representing how often the recurrence rule repeats." This patch checks the value of an interval while parsing a recurrence rule and ensures the minimum value is 1.

Discussion

  • Kent
    Kent
    2011-05-31

     
  • Allen Winter
    Allen Winter
    2011-06-04

    thanks for the patch, a version of your patch was committed in r1073.

     
  • Allen Winter
    Allen Winter
    2011-06-04

    • status: open --> closed