Skip to content
Tcl Source Code Changes To Object System and Fundamental Object Types
Login

Changes To Object System and Fundamental Object Types

Changes to "Object System and Fundamental Object Types" between 2014-09-11 15:54:53 and 2014-09-11 16:09:51

1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16











+




This is a huge module containing the fundamental base code that
represents and manipulates values in Tcl, as well as many foundations
that rests on, as well as several of the built-in Tcl_ObjTypes.

For analysis, it helps to break it down futher.

  *  [Encoding]
  *  [Hash Tables]
  *  [Tcl_Obj System]
  *  [string Object Type]
  *  [end-offset Object Type]
  *  [List Parsing]
  *  [Global Values]
  *  [Other Utilities]

Critical defect here: much of the API uses a <i>signed int</i> for object lengths (with negative numbers, typically -1, indicating “use strlen() to get the real length”). This is fine on 32-bit platforms, but massively wrong on 64-bit (except for ILP64 architectures, but that's a rare configuration).