|
2002-02-26
| ||
| 09:31 | • Closed ticket [521950ffff]: Fix bad alloc in tclHash.c plus 7 other changes artifact: 3cda81a178 user: hobbs | |
|
2002-02-24
| ||
| 09:46 | • Ticket [521950ffff]: 4 changes artifact: 300b298a9b user: mdejong | |
| 09:46 | • Add attachment hash_alloc.patch to ticket [521950ffff] artifact: 9db01f9903 user: mdejong | |
| 02:46 | • New ticket [521950ffff] Fix bad alloc in tclHash.c. artifact: 70cffa1281 user: mdejong | |
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]