|
2001-04-05
| ||
| 06:56 | • Ticket [218656ffff] "clock format" crash on 1970 wraparound</i... artifact: 0a2317d74f user: dgp | |
|
2000-10-26
| ||
| 08:26 | • Closed ticket [218656ffff]. artifact: d548bee7f2 user: welch | |
| 01:03 | • New ticket [218656ffff]. artifact: 1453234d5c user: nobody | |
"clock format" crash on 1970 wraparound
Closed / Fixed218656ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:46
OriginalBugID: 1612 Bug
Version: 8.1b2
SubmitDate: '1999-03-24'
LastModified: '1999-04-15'
Severity: CRIT
Status: Released
Submitter: pat
ChangedBy: stanton
RelatedBugIDs: 1192
OS: Windows NT
OSVersion: Server 4.0 Service Pack 3 (Japanese)
Machine: X86
FixedDate: '1999-04-15'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'
Name:
Taketo Kabe
ReproducibleScript:
# on WindowsNT,
set env(TZ) JST-9 ;#Japan Stantard 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 ease-of-GMT timezones seems to reveal this problem.
Unfortunately I don't have build/debug environ for Windows, but
I suspect that passing negative values to localtime() in
win/tclTinTime.c:TclpGetDate() is causing the problem.
If localtime() returned illegal (struct tm), it could crash as
compat/strftime.c:_fmt() doesn't have any range checking.
welch Closed ticket [218656ffff].
[History diff]2000-10-26 08:26:10
dgp Ticket [218656ffff]: 4 changes
[History diff]2001-04-05 06:56:33
Log in (anonymous is fine) to add a comment.