Skip to content
Tcl Source Code Artifact [7104273b02]
Login

Artifact [7104273b02]

Artifact 7104273b0299d5ba450a39a01a4d0349c245fa85:

Ticket change [7104273b02] - Ticket [3033307fffffffff|3033307fff] <i>binary decode base64 breaks with trailing spaces</i> status still Open with 4 other changes by a_kovalenko on 2010-07-23 18:10:38.
D 2010-07-23T18:10:38
J icomment Clarification:\sI\sdon't\smean\s"whitespace"\shere\swhen\sI\ssay\sthat\sit's\stoo\sliberal.\sE.g.\ssingle-character\sstring,\s"P",\sis\sillegal\swhen\sit's\sthe\s_whole_\sbase64\sinput,\syet\sTcl\s[binary\sdecode]\saccepts\sit.\s"P==="\sis\salso\sillegal\sand\salso\saccepted.\sThese\s"holes"\smay\sbe\sfixed\seasily,\stoo,\sbut\safter\sthat\sthis\sfunction\swill\slook\seven\smore\sugly.\s\n\nIt\sseems\sthat\sill-defined\ssemantics\sof\sthe\s`cut'\svariable\s(does\sit\scount\sbytes\sor\s6bit\sunits?)\s_is_\sthe\scause\sof\san\simpressive\samount\sof\s"special-case"\schecks\swithin\ssuch\sa\ssmall\sfunction.\n\nI\sbelieve\sthat\smy\spatch\sat\sleast\sprovides\scorrect\sdecoding\sof\s_correct_\sbase64,\sso\sit\smay\sbe\suseful\sas\sa\spalliative.\n
J login a_kovalenko
J mimetype text/plain
J username a_kovalenko
K 3033307fffffffffffffffffffffffffffffffff
U a_kovalenko
Z fe1a1d9a6fb9b8c687fc3312a8350e7c