Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 919d911e4635f7a84d04cddafa56f67f9a9028ce
Ticket: 495207ffffffffffffffffffffffffffffffffff
[subst] error on [ = buffer overrun?
User & Date: jenglish on 2001-12-19 22:49:30
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    [subst] produces garbage when the input contains an
    incomplete command substitution:
    
      set lb {[}
      set a [subst $lb]
    
    First saw this in Tcl 8.4 alpha something (CVS
    snapshot), but the bug seems to go back as far as Tcl
    8.0.
    
    Also:
    subst {[set a 1};# missing "]"
    
    sets $a to 1 and returns 1; this should probably be an
    error instead.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jenglish"
  9. subsystem changed to: "None"
  10. title changed to: "[subst] error on "[""
  11. type changed to: "Bug"