Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0d2faaa6bd34f358970af4165c1cf3af980c06f
Ticket: de7f92b65af279c0495d648ae871281c026ca955
variable substitution causes crashes
User & Date: ekd123 on 2016-07-15 09:59:00
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    set yf1 "14-11-03 14-18-27: 88 13 03 05 00 00 5A"
    set sen "78 78"
    set z "16-07-14 12-15-20"
    set str1 [string replace $[string replace $yf1 0 16 $z] 31 35 $sen] ;# oops; $[ is unnecessary
    puts $str1
    
    This code doesn't work because there's an unnecessary $, but an error is expected to be given rather than crash.
    
    OS: Windows 10 x64
    
  5. foundin changed to: "8.6.4"
  6. is_private changed to: "0"
  7. login: "ekd123"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0e41b4ccde994ffd1ec98da29689939312903f84"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "ekd123"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "variable substitution causes crashes"
  16. type changed to: "Bug"