lseq crash on out of range index if not byte compiled
Closed / Fixed7d3101bf287c9f7f49cdc010f922ab1a042f6c94Created 2 years agoUpdated 2 years ago
Descriptionmarkdown2025-04-27 09:35:43
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]
Referenced by4
b8d82ec520Fix [7d3101bf28] and [452b103a74] - lseq indexing crashes. check-in2025-04-28 09:20:381869372b12Fix [7d3101bf28] and [452b103a74] - lseq indexing crashes. check-in2025-04-28 09:01:1539e56660b9Fix [7d3101bf28] - crash on out of bounds lindex into lseq check-in2025-04-27 10:48:52b03fd4769eNew ticket [452b103a74] lseq crash on nested indices. ticket2025-04-27 10:21:42
apnadkarnimarkdown2025-04-27 09:47:05
So also an invalid index.
eval [list lindex [lseq 10] foo]
Investigating ...
apnadkarniplain2025-04-28 03:10:10
Proposed fix in [apn-bug-452b-7d31]
apnadkarniplain2025-04-28 10:04:26
Fixed in [1869372b12].
apnadkarni Closed ticket [7d3101bf28].
[History diff]2025-04-28 10:05:03
Log in (anonymous is fine) to add a comment.