Artifacts Associated With Ticket 218419ffffffffff
Ticket change [a54e946d87] (rid 110350) by nobody on 2000-10-26 00:57:20:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Error in moving data from c++ to tcl"
- type initialized to: "Bug"
Ticket change [a56bcb076e] (rid 110378) by welch on 2000-10-26 08:21:19:
- closedate changed to: "2000-10-26T01:21:19"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [82f7daafc5] (rid 117316) by dgp on 2001-04-19 02:57:38:
- closedate changed to: "2001-04-18T19:57:38"
- closer changed to: "dgp"
- subsystem changed to: "12. ByteArray Object"