.
D 2009-02-02T18:31:53
J assignee hobbs
J cmimetype text/plain
J comment \nThe\sTclpAlloc()\simplementation\sin\ntclThreadAlloc.c\saccepts\san\n(unsigned\sint)\sargument\s"reqSize"\nfor\sthe\snumber\sof\sbytes\sthe\scaller\nneeds.\n\nIf\sa\svalue\sgreater\sthan\n(UINT_MAX\s-\ssizeof(Block))\sis\spassed\nin,\sthen\sthe\scalculation\sof\sthe\stotal\nallocation\sneeded\sincluding\soverhead\nwill\soverflow\sthe\sunsigned\sint\srange,\nand\son\ssystems\swhere\sthe\srange\sof\nsize_t\sis\sno\sbigger\sthan\sthe\srange\nof\sunsigned\sint,\sthe\svalue\sof\s"size"\nwill\soverflow\sand\sthe\scomparions\sto\nMAXALLOC,\setc.\smay\swell\sreturn\sbogus\nresults.\n
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 41.\sMemory\sAllocation
J title TclpAlloc()\s-\sno\soverflow\sprotection
J type Bug
K 2557796fffffffffffffffffffffffffffffffff
U dgp
Z 5ce2869184bbaa4158dd76ddefefabb1