Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. 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>&#91;1900+INT_MIN,1900+INT_MAX&#93;</tt> will reliably cause an error. I will likely open other tickets about this.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"