Skip to content
Tcl Source Code History Of Ticket 218590
Login

History Of Ticket 218590

Artifacts Associated With Ticket 218590

  1. Ticket change [69f15416ec] (rid 128061) by nobody on 2000-10-26 01:02:51:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1372 Bug
      Version: 8.0p2
      SubmitDate: '1999-03-02'
      LastModified: '1999-10-30'
      Severity: LOW
      Status: Released
      Submitter: pat
      ChangedBy: hobbs
      OS: Windows NT
      OSVersion: 4.0
      Machine: X86
      FixedDate: '1999-10-30'
      FixedInVersion: 8.3b1
      ClosedDate: '2000-10-25'
      
      
      Name:
      Christopher M. Love
      
      ReproducibleScript:
      I have compiled Tcl/Tk with -DUSE_TCLALLOC=0, and Tcl and Tk still use
      these functions anyway in tclIOUtil.c and tkGrid.c.  While running my
      application which uses the Grid layout, Purify 6.0 for NT showed there
      was a place in Tcl_Free where memory was being read beyond an area of
      allocated memory. While I didn't experience an exception, there are times
      when a this type of activity does cause an exception.  Here's what I'm
      requesting:
      1. Can you fix the ABR errors?
      2. I replaced the calls in these files to Tcl_Free() and Tcl_Alloc()
         with ckalloc() and ckfree().  When compiled with USE_TCLALLOC=0,
         the errors disappear. Shouldn't the source you distribute do
         this as well.  If not, is there some reason for using Tcl_Free()
         and Tcl_Alloc() that I'm not aware of?
      
      ObservedBehavior:
      I found ABR (Array Bounds Reads where the program reads past allocated memory)
      in Purify for NT.  The source was compiled with Visual C++ 6.0 on NT 4.0
      
      DesiredBehavior:
      I would expect Purify not to show these errors as they can cause exceptions.
      I would also expect that all Tcl/Tk source files adhear to using ckfree() and
      ckalloc(), and not call Tcl_Free and Tcl_Alloc directly.
      
      
      Fixed as per suggestions. 
      -- 10/30/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.0p2"
    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: "Array bounds read errors in Tcl_Free/Tcl_Alloc"
    11. type initialized to: "Bug"
  2. Ticket change [4ba5916a15] (rid 126747) by welch on 2000-10-26 08:25:09:

    1. closedate changed to: "2000-10-26T01:25:09"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [8f8a037f40] (rid 120286) by dgp on 2001-04-16 20:31:21:

    1. closedate changed to: "2001-04-16T13:31:21"
    2. closer changed to: "dgp"
    3. subsystem changed to: "41. Memory Allocation"