Skip to content
Tcl Source Code Artifact [566512e7c1]
Login

Artifact [566512e7c1]

Artifact 566512e7c169bee136e1c200baf31f67d1c257be:

Ticket change [566512e7c1] - Ticket [67aa9a207037ae67|67aa9a2070] <i>Security: Invalid UTF-8 can inject unexpected characters</i> status still Closed with 5 other changes by dgp on 2017-06-05 16:56:12.
D 2017-06-05T16:56:12.129
J closedate 2457910.20569594
J closer dgp
J icomment \r\nFrom\sTCLCORE:\r\n\r\n"Tcl_UtfToUniChar()\sis\sdocumented\sas:\r\n\s\s\s\s<http://core.tcl.tk/tcl/artifact?ln=142-145&name=eaf0d058d9f17309>\r\nText:\r\n\s\s\s\sIf\sthe\sinput\sis\snot\sin\sproper\sUTF-8\sformat,\s\\fBTcl_UtfToUniChar\\fR\swill\r\n\s\s\s\sstore\sthe\sfirst\sbyte\sof\s\\fIsrc\\fR\sin\s\\fI*chPtr\\fR\sas\sa\sTcl_UniChar\r\n\s\s\s\sbetween\s0x0000\sand\s0x00ff\sand\sreturn\s1.\r\n\r\nThis\sturns\sout\sto\sbe\sa\slie:\sSome\sbyte-sequences,\swhich\sare\sclearly\r\nnon-proper\saccording\sto\sthe\sUTF-8\sstandard,\sthis\sfunction\sreturns\r\nsomething\selse\sthan\sthe\sfirst\sbyte.\sThat's\swhat\sI'm\sproposing\sto\sfix."\r\n\r\nThank\syou,\sthat's\sthe\sclear\sexplanation\sI\sneeded\sto\ssee.\s\sThis\sis\sindeed\r\na\sgood\schange\sto\smake.\s\sMerged\sto\score-8-6-branch.\sWill\sfurther\smerge\r\nforward.\r\n\r\nSeems\sthis\shas\sbeen\scontrary\sto\sdocumentation\ssince\sit\sarrived\r\nin\sTcl\s8.1.\s\sPossible\sexplanation\sis\sa\schanging\sstandard\sof\r\nwhat\sis\sconsidered\s"proper\sUTF-8\sformat"\sand\swhether\smultiple\r\nencodings\sare\spermissible\sfor\sthe\ssame\scodepoint?\s\sClear\sstandard\r\nnow\sis\sthat\sthey\sare\snot.\r\n\r\nOne\sthing\sthat\smight\sstill\sbe\simproved\s(?)\sis\sto\smention\sthe\r\nexception\s\\xc0\s\\x80\sencoding\sfor\sU+0000\sthat\sthe\sroutine\r\nexplicitly\smakes.
J login dgp
J mimetype text/plain
K 67aa9a207037ae67f9014b544c3db34fa732f2dc
U dgp
Z dec4cdef0e3ae65a3e701c6d90ad28d3