Skip to content
Tcl Source Code Artifact [90046925fc]
Login

Artifact [90046925fc]

Artifact 90046925fc16b53c94f724e8be056839972b0ca8:

Ticket change [90046925fc] - New ticket [218455ffffffffff|218455ffff] <i>Patch for short array in GetPermissionsAttribute</i>. by nobody on 2000-10-26 01:00:36.
D 2000-10-26T01:00:36
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s584\sBug\nVersion:\s8.1a2\nSubmitDate:\s'1998-05-21'\nLastModified:\s'1998-12-08'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\shershey\nChangedBy:\sstanton\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1998-12-08'\nFixedInVersion:\s8.1b1\nClosedDate:\s'2000-10-25'\n\n\nIn\sTcl8.1a2,\sthe\sfunction\sGetPermissionsAttribute\sin\n\nunix/tclUnixFCmd.c\sdeclares\sthe\sarray\sreturnString\sto\sbe\s6\scharacters.\n\nIt\sthen\swrites\sinto\sit\susing\ssprintf\swith\sa\sformat\sstring\sof\s"%0#5lo".\n\nThis\sformat\sstring\swill\sprint\sat\sleast\sone\s`0'\sbecause\sof\sthe\s#,\n\nfollowed\sby\sup\sto\s5\scharacters.\s\sThis\scan\smean\sreturning\sa\sstring\swith\n\nsix\scharacters,\soverflowing\sthe\sdeclared\ssize\sof\sthe\sarray.\n\n\nI\shave\sappended\sthe\sobvious\spatch.\n\n\nIncidentally,\sthe\scomment\sabove\sthis\sfunction\srefers\sto\sthe\sgroup\n\nattribute\sof\sthe\sfile,\sprobably\sa\sbad\scopy\sfrom\sGetGroupAttribute.\n\n\nIan\sTaylor\n\[email protected]\n\n\n***\stclUnixFCmd.c.~1~\s\s\sFri\sApr\s10\s17:14:19\s1998\n\n---\stclUnixFCmd.c\s\s\s\s\s\s\sFri\sApr\s10\s17:14:37\s1998\n\n***************\sGetPermissionsAttribute(interp,\sobjIndex\n\n***\s1168,1174\s****\n\n\s\s\s\s\s\sTcl_Obj\s**attributePtrPtr;\s\s\s\s\s\s\s\s\s\s\s\s/*\sA\spointer\sto\sreturn\sthe\sobject\swith.\s*/\n\n\s\s{\n\n\s\s\s\s\s\sstruct\sstat\sstatBuf;\n\n!\s\s\s\s\schar\sreturnString[6];\n\n\s\s\s\s\s\sTcl_DString\sds;\n\n\s\s\s\s\s\sCONST\schar\s*native;\n\n\s\s\s\s\s\sint\sresult;\n\n---\s1168,1174\s----\n\n\s\s\s\s\s\sTcl_Obj\s**attributePtrPtr;\s\s\s\s\s\s\s\s\s\s\s\s/*\sA\spointer\sto\sreturn\sthe\sobject\swith.\s*/\n\n\s\s{\n\n\s\s\s\s\s\sstruct\sstat\sstatBuf;\n\n!\s\s\s\s\schar\sreturnString[7];\n\n\s\s\s\s\s\sTcl_DString\sds;\n\n\s\s\s\s\s\sCONST\schar\s*native;\n\n\s\s\s\s\s\sint\sresult;\n\n\n\n\n12/08/1998\s13:24\s-\sstanton\s-\sThis\spatch\swas\sapplied\s11/30/98.
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\sshort\sarray\sin\sGetPermissionsAttribute
J type Bug
K 218455ffffffffffffffffffffffffffffffffff
U nobody
Z 62ccf0870d8098064c320978fc5e6340