Tcl Source Code

View Ticket
Login
2025-04-28
10:05 Closed ticket [7d3101bf28]: lseq crash on out of range index if not byte compile... 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 st... 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 st... 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 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].