Skip to content
Tcl Source Code History Of Ticket 218454
Login

History Of Ticket 218454

Artifacts Associated With Ticket 218454

  1. Ticket change [320e4e9587] (rid 93544) by nobody on 2000-10-26 01:00:35:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 583 Bug
      Version: 8.1a2
      SubmitDate: '1998-05-21'
      LastModified: '1998-12-08'
      Severity: SER
      Status: Released
      Submitter: hershey
      ChangedBy: stanton
      OS: All
      OSVersion: NA
      Machine: NA
      FixedDate: '1998-12-08'
      FixedInVersion: 8.1b1
      ClosedDate: '2000-10-25'
      
      
      The array strings in TeststringobjCmd in tclTestObj.c in Tcl 8.1a2 is
      
      too small.  The call to Tcl_AppendStringsToObj refers to strings[11].
      
      However, the strings array is defined to have only 11 entries, which
      
      means that strings[11] is past the end of the array.
      
      
      
      I've appended the obvious patch.
      
      
      
      Ian
      
      
      
      *** tclTestObj.c.~1~    Fri Apr 10 15:44:54 1998
      
      --- tclTestObj.c        Fri Apr 10 15:45:32 1998
      
      *************** TeststringobjCmd(clientData, interp, obj
      
      *** 851,857 ****
      
            Tcl_Obj *CONST objv[];    /* Argument objects. */
      
        {
      
            int varIndex, option, i, length;
      
      ! #define MAX_STRINGS 10
      
            char *index, *string, *strings[MAX_STRINGS+1];
      
            static char *options[] = {
      
              "append", "appendstrings", "get", "get2", "length", "length2",
      
      --- 851,857 ----
      
            Tcl_Obj *CONST objv[];    /* Argument objects. */
      
        {
      
            int varIndex, option, i, length;
      
      ! #define MAX_STRINGS 11
      
            char *index, *string, *strings[MAX_STRINGS+1];
      
            static char *options[] = {
      
              "append", "appendstrings", "get", "get2", "length", "length2",
      
      
      
      The patch has been applied.
      
    4. foundin initialized to: "obsolete: 8.1a2"
    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: "10. Objects"
    10. title initialized to: "Array size bug in TeststringobjCmd in Tcl 8.1a2"
    11. type initialized to: "Bug"
  2. Ticket change [e213c7bba2] (rid 87560) by welch on 2000-10-26 08:22:16:

    1. closedate changed to: "2000-10-26T01:22:16"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"