Skip to content
Tcl Source Code History Of Ticket 218932
Login

History Of Ticket 218932

Artifacts Associated With Ticket 218932

  1. Ticket change [23d1fa2d14] (rid 130999) by nobody on 2000-10-26 01:08:06:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2807 RFE
      Version: 8.2
      SubmitDate: '1999-09-16'
      LastModified: '1999-11-02'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Digital Unix
      OSVersion: 4.0e
      Machine: Other
      FixedDate: '1999-11-02'
      FixedInVersion: 8.2.1
      ClosedDate: '2000-10-25'
      
      
      Name:
      Evelino Bomitali
      
      CustomShell:
      Modification to Tcl_Alloc
      
      Comments:
      The patch proposed is based on the assumption that Tcl_Alloc is
          substantially an enhanced version of malloc. Probably this is a better
          solution compared with the previous patch proposal.
      
      ReproducibleScript:
      The header of the file tclCkalloc.c claims that it is an interface to
          malloc that support some checking. However, Tcl_Alloc return an error
          for request for a zero size memory while malloc return a NULL pointer.
      
      ObservedBehavior:
      During execution of test "scan-3.4" in the standard test suite, a call
          to ckalloc (and hence Tcl_Alloc) with size equal to zero is made,
          resulting in a core dump.
      
      Patch:
      The solution I am proposing is to modify Tcl_Alloc such that it return a NULL pointer if the size of memory requested is zero.
      800c800,803
      <
      ---
      >
      >       if (size == 0) {
      >          return NULL;
      >       }
      813a817,820
      >
      >       if (size == 0) {
      >          return NULL;
      >       }
      
      PatchFiles:
      tclCkalloc.c
      
      
      
      This has been changed to RFE because the assumption is more of
      an RFE, as we don't define it this way.  This sounds reasonable,
      so we could target it for 8.3. 
      -- 09/17/1999 hobbs
      It was decided to add better handling for checking on the NULL
      case in 8.2.1, which supports both DG-UX, AIX and similar OSes
      that return NULL for malloc(0). 
      -- 11/02/1999 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: "Tcl_Alloc behaviour differ from malloc"
    11. type initialized to: "RFE"
  2. Ticket change [4fff167d10] (rid 125905) by welch on 2000-10-26 08:32:13:

    1. closedate changed to: "2000-10-26T01:32:13"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [b8eb87bfb6] (rid 129043) by dgp on 2001-04-19 03:28:55:

    1. foundin changed to: "None"
    2. status changed to: "Open"
    3. subsystem changed to: "None"
  4. Ticket change [95d9748752] (rid 106224) by dgp on 2001-04-19 03:29:19:

    1. closedate changed to: "2001-04-18T20:29:19"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"
    4. subsystem changed to: "41. Memory Allocation"