.
D 2000-10-26T01:02:51
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1372\sBug\nVersion:\s8.0p2\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-10-30'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sWindows\sNT\nOSVersion:\s4.0\nMachine:\sX86\nFixedDate:\s'1999-10-30'\nFixedInVersion:\s8.3b1\nClosedDate:\s'2000-10-25'\n\n\nName:\nChristopher\sM.\sLove\n\nReproducibleScript:\nI\shave\scompiled\sTcl/Tk\swith\s-DUSE_TCLALLOC=0,\sand\sTcl\sand\sTk\sstill\suse\nthese\sfunctions\sanyway\sin\stclIOUtil.c\sand\stkGrid.c.\s\sWhile\srunning\smy\napplication\swhich\suses\sthe\sGrid\slayout,\sPurify\s6.0\sfor\sNT\sshowed\sthere\nwas\sa\splace\sin\sTcl_Free\swhere\smemory\swas\sbeing\sread\sbeyond\san\sarea\sof\nallocated\smemory.\sWhile\sI\sdidn't\sexperience\san\sexception,\sthere\sare\stimes\nwhen\sa\sthis\stype\sof\sactivity\sdoes\scause\san\sexception.\s\sHere's\swhat\sI'm\nrequesting:\n1.\sCan\syou\sfix\sthe\sABR\serrors?\n2.\sI\sreplaced\sthe\scalls\sin\sthese\sfiles\sto\sTcl_Free()\sand\sTcl_Alloc()\n\s\s\swith\sckalloc()\sand\sckfree().\s\sWhen\scompiled\swith\sUSE_TCLALLOC=0,\n\s\s\sthe\serrors\sdisappear.\sShouldn't\sthe\ssource\syou\sdistribute\sdo\n\s\s\sthis\sas\swell.\s\sIf\snot,\sis\sthere\ssome\sreason\sfor\susing\sTcl_Free()\n\s\s\sand\sTcl_Alloc()\sthat\sI'm\snot\saware\sof?\n\nObservedBehavior:\nI\sfound\sABR\s(Array\sBounds\sReads\swhere\sthe\sprogram\sreads\spast\sallocated\smemory)\nin\sPurify\sfor\sNT.\s\sThe\ssource\swas\scompiled\swith\sVisual\sC++\s6.0\son\sNT\s4.0\n\nDesiredBehavior:\nI\swould\sexpect\sPurify\snot\sto\sshow\sthese\serrors\sas\sthey\scan\scause\sexceptions.\nI\swould\salso\sexpect\sthat\sall\sTcl/Tk\ssource\sfiles\sadhear\sto\susing\sckfree()\sand\nckalloc(),\sand\snot\scall\sTcl_Free\sand\sTcl_Alloc\sdirectly.\n\n\nFixed\sas\sper\ssuggestions.\s\n--\s10/30/1999\shobbs
J foundin obsolete:\s8.0p2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Array\sbounds\sread\serrors\sin\sTcl_Free/Tcl_Alloc
J type Bug
K 218590ffffffffffffffffffffffffffffffffff
U nobody
Z 992fb540c5b0ea50556a41bf3b96a088