Skip to content
Tcl Source Code History Of Ticket 218419ffffffffff
Login

History Of Ticket 218419ffffffffff

Artifacts Associated With Ticket 218419ffffffffff

  1. Ticket change [a54e946d87] (rid 110350) by nobody on 2000-10-26 00:57:20:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5636 Bug
      Version: 8.2
      SubmitDate: '2000-05-23'
      LastModified: '2000-05-23'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      RelatedBugIDs: 3466
      OS: Windows NT
      OSVersion: NT 4.0 sp 5
      Machine: IBM 300PL / Pentium-II 400MHz
      FixedDate: '2000-10-25'
      ClosedDate: '2000-05-23'
      
      
      Name:
      Hillel Avni
      
      ReproducibleScript:
      in c++:
      ----
      int t_mm()
      {
      char *buf = new char[100];
      *(int *) buf = 0xd0800000; //or 0xd0900000 or 0xd0a00000 or 0xd0b00000
      Tcl_Obj *t = Tcl_NewObj();
      Tcl_AppendToObj (t, buf, 8);
      Tcl_SetObjResult(interp, t);
      }
      
      
      in tcl:
      ---
      set a [t_mm]
      binary scan $a H* b
      puts $b
      
      ObservedBehavior:
      input to t_mm, i.e - buf    |   output of tcl
      -----------------+-----------
      0xd0700000                    |   0xd0700000
      0xd0800000                    |   0x00000000
      0xd0900000                    |   0x10000000
      0xd0a00000                    |   0x20000000
      0xd0b00000                    |   0x30000000
      0xd0c00000                    |    0xd0c00000
      
      DesiredBehavior:
      Same value on both raws.
      
      
      
      This is prone to error.  The user should create these byte
      arrays with the Tcl_GetByteArrayFromObj and other Tcl ByteArray
      C functions to maintain integrity (avoid UTF translation).
      Also note the signed int dangers in bug report 3466. 
      -- 05/23/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Error in moving data from c++ to tcl"
    11. type initialized to: "Bug"
  2. Ticket change [a56bcb076e] (rid 110378) by welch on 2000-10-26 08:21:19:

    1. closedate changed to: "2000-10-26T01:21:19"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [82f7daafc5] (rid 117316) by dgp on 2001-04-19 02:57:38:

    1. closedate changed to: "2001-04-18T19:57:38"
    2. closer changed to: "dgp"
    3. subsystem changed to: "12. ByteArray Object"