Tcl Source Code

View Ticket
Login
Ticket UUID: 475db4384351f52244ea895963c4b5aab7032c07
Title: float cast overflows in lseq
Type: Bug Created on: 2025-09-23 22:07:39
Submitter: chrstphrchvz Assigned to: nobody
Subsystem: 17. Commands I-L Severity: Minor
Priority: 5 Medium Last modified: 2025-09-23 22:07:39
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: core-8-branch
Description:

UBSan -fsanitize=float-cast-overflow errors are triggered by test lseq-1.27, as well as this similar example:

% lseq 1e50 count 1 1
generic/tclArithSeries.c:568:22: runtime error: 1e+50 is outside the range of representable values of type 'long long'
generic/tclArithSeries.c:697:12: runtime error: 1e+50 is outside the range of representable values of type 'long long'
1e+50