<i>valgrind reports uninitialized memory access running the test suite</i> status still Closed with 5 other changes
by
.
D 2026-03-10T17:41:04.730
J closedate 2461110.2368603009
J closer apnadkarni
J icomment Sorry,\sI\sdid\snot\ssee\syour\sresponse\searlier.\sIt\sappears\sI\sam\snot\sgetting\smail\snotifications\sfrom\sbugs\sany\smore\sand\sI'm\scurrently\sonly\ssporadically\stracking\sthe\stickets.\r\n\r\nYep,\sI\sknow\sWindows\salso\shad\sthe\sproblem.\sBut\sit\swas\svisible\son\sUnix\sthanks\sto\svalgrind.\sI\sthink\sif\sthere\swere\stests\sthat\sforced\scollisions\sin\sthe\shash\stable,\sit\smight\shave\sshown\sup\son\sboth\splatforms.\r\n\r\nI\sam\suncomfortable\swith\syour\ssolution\sfor\stwo\sreasons.\s\r\n\r\nFirst,\sthe\sC\sstandard\sdoes\snot\sguarantee\sthe\s4\spad\sbytes\sappear\sas\strailing\sbytes.\sThey\scould\sappear\s*before*\sthe\stype\sfield\s(and\sno\strailing\spad)\swhile\sstill\smaintaining\sthe\salignment\sand\sfield\sordering\sguarantees\smade\sby\sthe\sstandard.\sAnd\sin\sthat\scase\syour\scode\swould\sbreak.\r\n\r\nHaving\ssaid\sthat,\sperhaps\sI'm\sbeing\spedantic\sand\sno\scompiler\sdoes\sthat\sin\sthe\sreal\sworld.\s\r\n\r\nSecond,\sand\smore\simportant,\sconsider\sthat\swith\syour\scode,\sthe\s`AllocArrayEntry`\sin\sthe\shash\smodule\sallocates\s12\sbytes\sfor\sthe\skey.\sHowever,\sthe\sline\r\n\r\n```\r\nkeyPtr\s=\s(ScriptLimitCallbackKey\s*)\r\n\t\tTcl_GetHashKey(&iPtr->limit.callbacks,\shashPtr);\r\n```\r\n\r\ncasts\sthe\s12\sbyte\sallocation\sto\sa\spointer\sto\sa\s16\sbyte\sstruct!\sI\sreally\sdo\snot\slike\sthis\skind\sof\sviolation\sof\scompiler\scontracts\sno\smatter\swhether\sthere\sis\sany\spractical\seffect.\r\n\r\nSo\sI\swould\sstill\sprefer\sthe\sfix\sI\shad\sproposed\sparticularly\sas\sI\sdon't\ssee\sany\sparticular\sadvantage\sof\syour\ssolution.
J login apnadkarni
J mimetype text/x-markdown
K f7495f63c01ea80069198ac183e1e0cc8873dabe
U apnadkarni
Z 640929a8e593d68b43ed60dbd4db851c