Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3ba1de616e7e8e0448f6ba5058dfed3f54f0a564
Ticket: 1036649fffffffffffffffffffffffffffffffff
Buffer overrun in [subst]
User & Date: msofer on 2004-09-29 09:14:13
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    The problem seems to be in Tcl_EvalEx: it fails when it
    evaluates a nested script of unknown length (numBytes==-1)
    that is missing the closing ']' AND ends in ';' (a space
    after that seems not to trigger the buffer overflow). 
    
    In any case, the attached patch to core-8-4-branch seems to
    fix it. There might be a more elegant to fix this ...
    
    Note that Tcl_EvalEx has been rewritten in HEAD; I did not
    yet check if the problemmight be there too.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"