Overview
| Artifact ID: | 70cffa128198867c4beb2c0a939aed26ee19e672 |
|---|---|
| Ticket: | 521950ffffffffffffffffffffffffffffffffff
Fix bad alloc in tclHash.c |
| User & Date: | mdejong on 2002-02-24 02:46:01 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mdejong"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "Fix bad alloc in tclHash.c"
- type changed to: "Bug"