Tcl Source Code

View Ticket
Login
2025-04-28
10:05 Closed ticket [7d3101bf28]: lseq crash on out of range index if not byte compiled plus 5 other changes artifact: 0f3be64c9e user: apnadkarni
10:04 Ticket [7d3101bf28]: 3 changes artifact: ef2b0736d8 user: apnadkarni
09:20
Fix [7d3101bf28] and [452b103a74] - lseq indexing crashes. check-in: b8d82ec520 user: apnadkarni tags: trunk, main
09:01
Fix [7d3101bf28] and [452b103a74] - lseq indexing crashes. check-in: 1869372b12 user: apnadkarni tags: core-9-0-branch
03:10 Ticket [7d3101bf28] lseq crash on out of range index if not byte compiled status still Open with 3 other changes artifact: ae35397e82 user: apnadkarni
2025-04-27
10:48
Fix [7d3101bf28] - crash on out of bounds lindex into lseq check-in: 39e56660b9 user: apnadkarni tags: apn-bug-452b-7d31
10:29
Crash tests for bugs [45b2] and [7d31] check-in: 8e3891ade0 user: apnadkarni tags: apn-bug-452b-7d31
10:21 New ticket [452b103a74] lseq crash on nested indices. artifact: b03fd4769e user: apnadkarni
09:47 Ticket [7d3101bf28] lseq crash on out of range index if not byte compiled status still Open with 3 other changes artifact: 936b874f33 user: apnadkarni
09:35 New ticket [7d3101bf28]. artifact: 64b805db8b user: apnadkarni

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 ...