Tcl Source Code

View Ticket
Login
Ticket UUID: 7d3101bf287c9f7f49cdc010f922ab1a042f6c94
Title: lseq crash on out of range index if not byte compiled
Type: Bug Created on: 2025-04-27 09:35:43
Submitter: apnadkarni Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Severe
Priority: 5 Medium Last modified: 2025-04-28 10:05:03
Status: Closed Closed by: apnadkarni
Resolution: Fixed Closed on: 2025-04-28 10:05:03
Version: 9.0.0
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-27 09:47:05:

So also an invalid index.

eval [list lindex [lseq 10] foo]

Investigating ...


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

apnadkarni added on 2025-04-28 10:04:26:
Fixed in [1869372b12].