Overview
| Artifact ID: | 8ef3114b5759bc9660497bc9a69d4d196cee8ca9 |
|---|---|
| Ticket: | 3129448fffffffffffffffffffffffffffffffff
possible over-allocation on 64-bit platforms |
| User & Date: | nijtmans on 2010-12-06 08:44:52 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
Inspired by bug #3127687, noted that on 64-bit platforms, where sizeof(integer) == 8, some structures are over-allocated because sizeof() might count additional padding bytes. That's no big deal, except that it is strange anyway to use [4] as the number of bytes in the structure. Solution: use the TclOffset macro to calculate the right size, in stead of substracting two sizeof()'s. That will correctly take padding bytes into account. patch attached
- foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "possible over-allocation on 64-bit platforms"
- type changed to: "Bug"