Fix bad alloc in tclHash.c
Closed / Fixed521950ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-02-24 02:46:01
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.
mdejongplain2002-02-24 09:46:03
File Added - 18311: hash_alloc.patch
hobbsplain2002-02-26 09:31:07
Logged In: YES user_id=72656 added to 8.4a4cvs as provided.
Log in (anonymous is fine) to add a comment.
Attachments:
- hash_alloc.patch [download] added by mdejong on 2002-02-24 09:46:03. [details]