Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-04-08
18:42 • Ticket [2739719fff] stack overflow in parser... status still Closed with 4 o... artifact: ac160d5eae user: dgp
2009-04-07
21:09 • Closed ticket [2739719fff]. artifact: ce06e36af6 user: dgp
21:05 • Ticket [2739719fff]: 5 changes artifact: 3307f25249 user: dgp
05:24 • New ticket [2739719fff]. artifact: 92e69fad6d user: mistachkin

stack overflow in parser...

Closed / Duplicate2739719fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-04-07 05:24:52
This script causes a stack overflow, even in a safe interpreter:

proc appendArgs { args } {set result ""; eval append result $args}
set x [appendArgs [string repeat \[ 24000] foo [string repeat \] 24000]]
eval $x; # stack overflow here...
dgpplain2009-04-07 21:05:36
see dgp-refactor-branch
dgpplain2009-04-07 21:09:24
allow_comments - 1



...and RFE 684994
dgpplain2009-04-08 18:42:45
FWIW, on my test systems, I cannot get that
script to trigger stack overflow.  Either it eventually
completes successfully (after hours! -- ugly N^2
parser behavior), or it panics unable to allocate
memory.
Log in (anonymous is fine) to add a comment.