Overview
| Comment: | Limit nested brackets in the expression-substitution scanner to 1000 levels (EXPR_SUBST_MAX_SCAN_DEPTH). Deeper nesting gives the error 'expression substitution nested too deeply' (error code TCL LIMIT STACK) instead of overflowing the C stack. Adds parse-22.114 to 22.118. |
|---|---|
| Timelines: | family | ancestors | descendants | both | tip-672-v2 |
| Files: | files | file ages | folders |
| SHA3-256: |
d14b0f9b752a506bbb20db5e390ff917 |
| User & Date: | rocketship98 on 2026-10-27 10:52:26.704 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-10-30
| ||
| 20:44 | Tcl.n: rule 8 covers variable and expression substitution; four-paragraph $((expression)) entry with... check-in: b5136123e7 user: rocketship98 tags: tip-672-v2 | |
|
2026-10-27
| ||
| 10:52 | Limit nested brackets in the expression-substitution scanner to 1000 levels (EXPR_SUBST_MAX_SCAN_DEP... check-in: d14b0f9b75 user: rocketship98 tags: tip-672-v2 | |
|
2026-10-26
| ||
| 02:57 | Guard against stack overflow from deeply nested $((expr)): apply the same nesting limit as TclCompil... check-in: 24c265df9a user: rocketship98 tags: tip-672-v2 | |
Changes
Modified generic/tclParse.c
from [e729f94830]
to [8dbbd85bf0].
[diff]
Modified tests/parse.test
from [242b3a88d2]
to [15b42dfb48].
[diff]