Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6614584d649769c4c31e00b5a1355e0dc8df8f21
Ticket: 58241eb2e44c14c7fc12a4c468e69d023839e352
$[] causes crashes
User & Date: ekd123 on 2016-07-14 08:12:05
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 00 0D 01 07 09 32 00 7E 00 FF FF FF FF FF FF 00 00 04 00 01 03 09 01 02 03 04 05 06 07 08 00 1E 00 01 00 20 15 08 00 20 00 01 00 01 01 44 00 00 00 D2 04 00 00 00 00 0D 01\
    07 09 32 00 04 07 80 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 0D 01 07 09 32 00 04 07 80 C3 00 00 00 00 11 C3 9E"
    set sen "78 78"
    set z "16-07-14 12-15-20"
    set str ""
    set line "12345"
    append str [append line "\n"]
    set str1 [string replace $[string replace $yf1 0 16 $z] 31 35 $sen] ;# oops
    puts $str1
    
    The code above will make Tcl crash.
    
  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: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "ekd123"
  14. subsystem changed to: "10. Objects"
  15. title changed to: "$[] causes crashes"
  16. type changed to: "Bug"