Skip to content
Tcl Source Code Check-in [018bd8d323]
Login

Check-in [018bd8d323]

Overview
Comment:Fix [f894a85b9a]: free-form clock scan silently wraps numbers that do not fit into an int. Numbers that do not fit into an int are no longer truncated to a value that may be valid. The year is kept as a Tcl_WideInt by the parser and checked, and relative months, years, days, seconds, "next N Month" and "N Monday" are calculated in 64 bits. Also fix relative months and years before the common era, which went in the wrong direction, signed integer overflows with -valid 0 and in the julian day helpers, and overflows in clock add with large offsets. clock add now raises "integer value too large to represent" for a result outside the range of clock seconds.
Timelines: family | ancestors | descendants | both | clock-freescan-int-range
Files: files | file ages | folders
SHA3-256: 018bd8d323bfdc68a048d07a0c1152147a47adf4ad331c73bec0743e4df5191d
User & Date: serhiy.storchaka on 2026-11-14 09:28:51.226
Other Links: branch diff | manifest | tags
Context
2026-11-14
12:23
Fix [f894a85b9a]: Free-form clock scan silently wraps numbers that do not fit into an int (regressio... check-in: 21bc2b48f7 user: serhiy.storchaka tags: trunk, main
09:28
Fix [f894a85b9a]: free-form clock scan silently wraps numbers that do not fit into an int. Numbers ... closed check-in: 018bd8d323 user: serhiy.storchaka tags: clock-freescan-int-range
2026-11-13
21:48
[7d47ba7d94] follow-up: stack check misfires under AddressSanitizer check-in: 942d86d156 user: jan.nijtmans tags: trunk, main
Changes