.
D 2000-10-26T00:45:00
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2047\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-12'\nLastModified:\s'1999-05-14'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\sstanton\nRelatedBugIDs:\s1975\nOS:\sOther\nOSVersion:\sBSD/OS\s4.0.1\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\s8.1.1\nClosedDate:\s'1999-05-14'\n\n\nName:\n\nRobert\sHare\n\n\n\nComments:\n\nI\shave\sbeen\sunable\sto\scome\sup\swith\sa\snon-extended\sTcl\sscript\sthat\swill\s\s\n\n\s\s\s\sdemonstrate\sthis\sproblem\soutside\sof\smy\sextension.\s\sHowever,\slooking\sat\n\n\s\s\s\sDupListInternalRep\sin\sthe\sList\sobject\sreveals\sthat\sthe\sdupIntRepProc\n\n\s\s\s\sshould\sset\sthe\sobject\stype\sin\sthe\scopy.\s\sI\ssuspect\sthere\sis\sa\sway\sto\n\n\s\s\s\sgenerate\sthe\sproblem\n\n\s\s\s\swithout\san\sextension,\sbut\sI\shaven't\sfound\sit\syet.\n\n\n\nReproducibleScript:\n\nThe\sDupByteArrayInternalRep\sroutine\sin\stclBinary.c\sdoes\snot\sset\sthe\stype\n\n\s\s\s\sin\sthe\n\n\s\s\s\scopyPtr\sobject\sto\s&tclByteArrayType.\n\n\n\nObservedBehavior:\n\nWhile\screating\sa\snew\sextension,\sI\srecevied\sa\ssegmentation\sfault\swhen\n\n\s\s\s\scalling\n\n\s\s\s\sTcl_GetByteArrayFromObj\son\san\sobject\sthat\shad\sbeen\sduplicated.\n\n\n\nPatch:\n\n***\stclBinary.c.orig\s\s\s\sTue\sMay\s11\s20:21:22\s1999\n\n---\stclBinary.c\sTue\sMay\s11\s23:21:52\s1999\n\n***************\n\n***\s457,462\s****\n\n---\s457,463\s----\n\n\s\s\s\s\s\smemcpy((VOID\s*)\scopyArrayPtr->bytes,\s(VOID\s*)\ssrcArrayPtr->bytes,\n\n\s\s\s\s\s\s\s\s\s\s\s\s(size_t)\slength);\n\n\s\s\s\s\s\sSET_BYTEARRAY(copyPtr,\scopyArrayPtr);\n\n+\s\s\s\s\scopyPtr->typePtr\s=\s&tclByteArrayType;\n\n\s\s}\n\n\s\s^L\n\n\s\s/*\n\n\n\nPatchFiles:\n\ntclBinary.c\n\n\n\n\n\n
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title DupByteArrayInternalRep\sdoes\snot\sset\sobject\stype\sof\snew\sobje
J type Bug
K 217861ffffffffffffffffffffffffffffffffff
U nobody
Z f7f66f7586e23fdb0cd451d986910d8f