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: |
018bd8d323bfdc68a048d07a0c115214 |
| 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
Modified generic/tclClock.c
from [9b6028738e]
to [01b027c703].
[diff]
Modified generic/tclDate.c
from [a2cf675428]
to [8356a69950].
[diff]
Modified generic/tclDate.h
from [164583de62]
to [42187e2022].
[diff]
Modified generic/tclGetDate.y
from [cbc5263e69]
to [102075456c].
[diff]
Modified tests/clock.test
from [fd663dffa8]
to [9c87bda699].
[diff]