ical.js icon indicating copy to clipboard operation
ical.js copied to clipboard

Infinite loop caused by invalid recurrence

Open elirenato opened this issue 3 years ago • 1 comments

Reproducible on latest main.

To reprocude, we can use the recur_iterator_test.js and add the following code:

testRRULE('FREQ=MONTHLY;BYDAY=1TH;BYSETPOS=2', {
        dtStart: '2015-01-11T08:00:00',
        dates: [
          '2015-02-05T08:00:00'
        ]
      });

after that, run

grunt test-node:single --test=test/recur_iterator_test.js

PS: I believe the problem in inside the next_month function but I'm not sure how to fix it.

elirenato avatar May 11 '22 00:05 elirenato

Hi, I experienced that too and it acutally crashed my Nextcloud calender and some other calender applications that probably use ical.js

This should definetly be fixed and it's sad to see this unresponded after a whole year.

CardiJey avatar Jun 06 '23 21:06 CardiJey