.
D 2003-04-02T18:58:39
J assignee hobbs
J cmimetype text/plain
J comment The\sfollowing\scode\scrashes\sa\s32-bit\smachine\s(PC):\n\nset\sM\s\s[string\srepeat\sx\s\s1048576]\nset\sG4\s[string\srepeat\s$M\s\s\s\s4096]\n\nThe\sculprit\sis\sthe\sunchecked\slength\smultiplication\nin\sline\s2110\sin\s"generic/tclCmdMZ.c:\n\nlength2\s\s\s\s\s\s\s\s\s\s\s\s\s=\slength1\s*\scount;\n\nThat\scan\soverflow.\s\sAs\sa\sresult,\smuch\sless\smemory\ngets\sallocated,\sthan\sfilled\safter\sallocation.\n\nI\ssuggest\sto\scheck\sthe\smultiplication\sby\sback-division:\n\nif\s((length2\s/\scount)\s!=\slength1)\s{\s...error...\s}\n\nHeiner\[email protected]
J foundin obsolete:\s8.4.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 41.\sMemory\sAllocation
J title [string\srepeat]\smay\scrash
J type Bug
K 714106ffffffffffffffffffffffffffffffffff
U nobody
Z 0a2d3380a846fc6464b0e532dc6436a3