[TW-19] no maximum recur leads to an infinite loop in gc from overflow of int
Scott Kostyshak on 2012-09-01T23:17:31Z says:
To reproduce:
- task add brush my teeth recur:70years due:today
- task
(2) puts me into an infinite loop in generateDueDates.
Migrated metadata:
Created: 2012-09-01T23:17:31Z
Modified: 2017-01-16T14:52:22Z
Paul Beckingham on 2012-09-16T18:46:24Z says:
Recurrence periods should be validated. Anything where now + recurrence > 2038 should be rejected.
Paul Beckingham on 2012-12-01T21:01:22Z says:
Will be addressed by kronisk. I wonder if 64-bit time support would just make this go away.
Paul Beckingham on 2017-01-16T14:52:22Z says:
There should be a reasonable upper bound on recurrence period (P5Y?), and there should be a check that a projected date does not exceed max time_t depending on sizeof time_t.
Reproduced on 2.6.0.