Tcl Source Code

View Ticket
Login
Ticket UUID: 7d3101bf287c9f7f49cdc010f922ab1a042f6c94
Title: lseq crash on out of range index if not byte compiled
Type: Bug Version: 9.0.0
Submitter: apnadkarni Created on: 2025-04-27 09:35:43
Subsystem: - New Builtin Commands Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2025-04-28 10:05:03
Resolution: Fixed Closed By: apnadkarni
    Closed on: 2025-04-28 10:05:03
Description:

The following work

try [list lindex [lseq 10] -1]
try [list lindex [lseq 10] 10]

Either of the following cause a crash.

eval [list lindex [lseq 10] -1]
eval [list lindex [lseq 10] 10]
User Comments: apnadkarni added on 2025-04-28 10:04:26:
Fixed in [1869372b12].

apnadkarni added on 2025-04-28 03:10:10:
Proposed fix in [apn-bug-452b-7d31]

apnadkarni added on 2025-04-27 09:47:05:

So also an invalid index.

eval [list lindex [lseq 10] foo]

Investigating ...