Overview
| Artifact ID: | 021b0ac23632e881f5481e4f043982f1a5a93081c4673450c68dcd778bb7a282 |
|---|---|
| Ticket: | 00655c867eabd57ac3acd93bffe2f93799c12c89
ClockGetdatefieldsObjCmd(): avoid signed integer overflow and platform-dependent behavior |
| User & Date: | chrstphrchvz on 2023-09-20 20:50:33 |
Changes
- icomment:
The exact cutoffs for <tt>localtime()</tt>/<tt>localtime_r()</tt> errors may depend on the platform epoch, but if <tt>struct tm</tt> is consistently defined, then I would think time values with years way outside of <tt>[1900+INT_MIN,1900+INT_MAX]</tt> will reliably cause an error. I will likely open other tickets about this.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"