taskwarrior icon indicating copy to clipboard operation
taskwarrior copied to clipboard

[TW-19] no maximum recur leads to an infinite loop in gc from overflow of int

Open taskwarrior opened this issue 7 years ago • 5 comments

Scott Kostyshak on 2012-09-01T23:17:31Z says:

To reproduce:

  1. task add brush my teeth recur:70years due:today
  2. task

(2) puts me into an infinite loop in generateDueDates.

taskwarrior avatar Feb 12 '18 14:02 taskwarrior

Migrated metadata:

Created: 2012-09-01T23:17:31Z
Modified: 2017-01-16T14:52:22Z

taskwarrior avatar Feb 12 '18 14:02 taskwarrior

Paul Beckingham on 2012-09-16T18:46:24Z says:

Recurrence periods should be validated. Anything where now + recurrence > 2038 should be rejected.

taskwarrior avatar Feb 12 '18 14:02 taskwarrior

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.

taskwarrior avatar Feb 12 '18 14:02 taskwarrior

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.

taskwarrior avatar Feb 12 '18 14:02 taskwarrior

Reproduced on 2.6.0.

tbabej avatar Dec 28 '20 07:12 tbabej