Overview
| Artifact ID: | a9f0f9f4fdf28cb82986fddd36ce478366121233138a976d4535016f8b926dff |
|---|---|
| Ticket: | 3019348fffffffffffffffffffffffffffffffff
Nested lset can modify list on error |
| User & Date: | serhiy.storchaka on 2026-10-17 09:15:46 |
Changes
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Still present in 8.6, 9.0 and 9.1: since TIP 331 ([41ad4c4b67]) TclLsetFlat() appends an empty sublist for an index equal to the list length before checking the remaining indices, and does not remove it when one of them fails. Inside a procedure the literal list is shared and copied, which hides the problem. Proposed fix in branch [/timeline?r=lset-undo-append-on-error|lset-undo-append-on-error]: remove the appended sublist on error. Tests lset-17.1 to lset-17.3.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"