Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:56 • Ticket [218616ffff] &quot;clock format&quot; crash on 1970 wraparound</i... artifact: bc96865591 user: dgp
2000-10-26
08:25 • Closed ticket [218616ffff]. artifact: 81cbacc52e user: welch
01:03 • New ticket [218616ffff]. artifact: 6ba5980766 user: nobody

&quot;clock format&quot; crash on 1970 wraparound

Closed / Fixed218616ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:08
OriginalBugID: 1458 Bug
Version: 8.1b1
SubmitDate: '1999-03-05'
LastModified: '1999-04-05'
Severity: CRIT
Status: Released
Submitter: pat
ChangedBy: stanton
RelatedBugIDs: 1142
OS: Windows NT
OSVersion: Server Version 4.0 (japanese) Service Pack 3
Machine: X86
FixedDate: '1999-04-05'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'


Name:
Taketo Kabe

ReproducibleScript:
    # using tclsh81.exe (beta1) on WindowsNT 4.0(sp3)
    
    set env(TZ) JST-9     ;#Japan Standard Time; 9 hours east
    clock format -32400
    # any values between -32400 and -1 will crash the interp
    
    



ObservedBehavior:
    The interpreter crashes.
    



DesiredBehavior:
    return "Thu Jan 01 00:00:00 JST 1970"
    





    Only east-of-GMT timezones seems to reveal this problem.
-----
Related to bug ID 1142.

Ok, this is reproducible in NT 4.0 JP.  The problem is that the check for negative time values is incorrect for east-of-GMT timezones.
04/05/1999 16:53 - stanton -
welch Closed ticket [218616ffff]. [History diff]2000-10-26 08:25:11
dgp Ticket [218616ffff]: 4 changes [History diff]2001-04-05 06:56:33
Log in (anonymous is fine) to add a comment.