later icon indicating copy to clipboard operation
later copied to clipboard

certain cron expressions can cause endless loop

Open pekeler opened this issue 10 years ago • 2 comments

later.parse.cron('*/-2 * * * *');

I realize this is an invalid cron expression. But an endless loop is not ideal.

pekeler avatar Oct 13 '15 18:10 pekeler

Did you happen to catch where the problem was?

bunkat avatar Oct 13 '15 23:10 bunkat

Seems to be the while loop in add(sched, name, min, max, inc), called by addRange, parse, parseExpr. https://github.com/bunkat/later/blob/master/src/parse/cron.js#L103

pekeler avatar Oct 14 '15 01:10 pekeler