.
D 2000-10-26T01:00:34
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s581\sBug\nVersion:\s8.1a2\nSubmitDate:\s'1998-05-21'\nLastModified:\s'1998-11-19'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\shershey\nChangedBy:\srjohnson\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1998-11-19'\nFixedInVersion:\s8.0.5\nClosedDate:\s'2000-10-25'\n\n\nIn\sTcl\s8.1a2,\son\sWindows,\sthe\sfunction\sTclGetDefaultStdChannel,\sin\n\nwin/tclWinChan.c,\sdoes\snot\scheck\sthe\sreturn\svalue\sof\n\nTcl_MakeFileChannel\sbefore\spassing\sit\sto\sTcl_SetChannelOption.\n\nHowever,\sit\sis\spossible,\sif\ssomewhat\sunlikely,\sfor\sTcl_MakeFileChannel\n\nto\sfail,\swhen\sthere\sis\ssome\sconfusion\sover\shandles\sand\sthe\smode\sin\n\nwhich\sthey\swere\sopened.\s\sIt\sis\sbetter\sto\sreturn\san\sindication\sof\n\nfailure\sthan\sto\sget\sa\ssegmentation\sviolation.\n\n\n\nI\shave\sappended\sthe\sobvious\spatch.\n\n\n\nIan\sTaylor\n\[email protected]\n\n\n\n***\stclWinChan.c.~1~\s\s\s\sFri\sApr\s10\s17:47:12\s1998\n\n---\stclWinChan.c\s\s\s\s\s\s\s\sFri\sApr\s10\s17:47:17\s1998\n\n***************\sTclpGetDefaultStdChannel(type)\n\n***\s1180,1185\s****\n\n---\s1180,1188\s----\n\n\s\s\s\s\s\s}\n\n\s\s\n\n\s\s\s\s\s\schannel\s=\sTcl_MakeFileChannel(handle,\smode);\n\n+\s\s\s\s\sif\s(channel\s==\sNULL)\s{\n\n+\s\s\s\s\s\s\sreturn\sNULL;\n\n+\s\s\s\s\s}\n\n\s\s\n\n\s\s\s\s\s\s/*\n\n\s\s\s\s\s\s\s*\sSet\sup\sthe\snormal\schannel\soptions\sfor\sstdio\shandles.\n\n\n\n\n\nThis\sbug\salso\sappeared\sin\sTcl\s8.0.\s\sI\sfixed\sit\sin\sversion\s8.0.5.\s\sThe\schange\swill\spropagate\sup\sto\s8.1.\s\s-\sRay\n\n
J foundin obsolete:\s8.1a2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Patch\sfor\smissing\serror\scheck\sin\sTclGetDefaultStdChannel\son\s
J type Bug
K 218453ffffffffffffffffffffffffffffffffff
U nobody
Z 2c22a2f88c95b37631f41ef3266be260