.
D 2010-12-06T08:44:52
J assignee hobbs
J cmimetype text/plain
J comment Inspired\sby\sbug\s#3127687,\snoted\sthat\son\s64-bit\nplatforms,\swhere\ssizeof(integer)\s==\s8,\ssome\sstructures\nare\sover-allocated\sbecause\ssizeof()\smight\scount\nadditional\spadding\sbytes.\sThat's\sno\sbig\sdeal,\sexcept\nthat\sit\sis\sstrange\sanyway\sto\suse\s[4]\sas\sthe\snumber\nof\sbytes\sin\sthe\sstructure.\n\nSolution:\suse\sthe\sTclOffset\smacro\sto\scalculate\sthe\nright\ssize,\sin\sstead\sof\ssubstracting\stwo\ssizeof()'s.\sThat\nwill\scorrectly\stake\spadding\sbytes\sinto\saccount.\n\npatch\sattached
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 41.\sMemory\sAllocation
J title possible\sover-allocation\son\s64-bit\splatforms
J type Bug
K 3129448fffffffffffffffffffffffffffffffff
U nijtmans
Z 2126d37ed76701cd48e082634684a3e8