Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 70cffa128198867c4beb2c0a939aed26ee19e672
Ticket: 521950ffffffffffffffffffffffffffffffffff
Fix bad alloc in tclHash.c
User & Date: mdejong on 2002-02-24 02:46:01
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The attached patch cleans up the hash alloc
    code in the case of a really short string.
    This comes up in Tk when you have a window
    named ".t" and it gets added to the global
    table. The problem is that the Tcl_HashEntry*
    is pointing to an array of 19 bytes while
    a Tcl_HashEntry takes up 20 bytes. This does
    not cause any problems at runtime as far
    as I can tell. It is really just an issue
    of correctness. I can't imaging this patch
    could possibly break anything so it should
    be safe to apply.
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mdejong"
  9. subsystem changed to: "41. Memory Allocation"
  10. title changed to: "Fix bad alloc in tclHash.c"
  11. type changed to: "Bug"