Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e983c30d07d7c38189f6d28c62118bf5fe713b6e
Ticket: 2017583fffffffffffffffffffffffffffffffff
unnecessary numLevels++ in tclParse.c?
User & Date: dgp on 2008-08-07 21:22:13
Changes

  1. closedate changed to: "2008-08-07T14:22:13"
  2. closer changed to: "dgp"
  3. icomment:
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    If this management of numLevels is removed,
    the following test script will no longer
    work correctly:
    
        interp recursionlimit {} 100
        testevalex [string repeat \[ 200][string repeat \] 200]
    
    The limit won't catch the evaluation.
    
    The implication is that an arbitrary number of
    nested calls to TclEvalEx can happen on the C stack
    without any protection.
    
    Unless things change even more under the hood,
    we still need those lines managing numLevels
    in TclSubstTokens.
    
    
  4. login: "dgp"
  5. mimetype: "text/plain"
  6. status changed to: "Pending"
  7. username: "dgp"