Skip to content
Tcl Source Code Artifact [2af52896b3]
Login

Artifact [2af52896b3]

Artifact 2af52896b3d1064726a9915342545039ec5d0f48:

Ticket change [2af52896b3] - Ticket [2380293fffffffff|2380293fff] <i>binary decode uuencode foo --&gt; segfault</i> status still Open with 4 other changes by ferrieux on 2008-12-12 15:47:08.
D 2008-12-12T15:47:08
J icomment OK\snow\sI\sknow\sthe\salgorithm.\sThe\soff-by-one\sis\sthe\svisible\spart\sof\sa\slarger\siceberg:\sthe\s"cut"\svariable\scounts\smissing\sbytes\sin\sthe\ssource\s(base\s64)\sstream,\sand\sis\swrongly\stranslated\s1-to-1\sinto\smissing\sbytes\sin\sthe\sdecoded\sstream.\sSo\sthere's\sa\ssystematic\serror\sof\sfactor\s4/3\s(since\sa\s"cut++"\sshould\sonly\scount\sas\sremoving\s6\sbits).\n\nHowever,\sI\sbelieve\sthe\svery\sprinciple\sof\sallowing\snon-strict\suudecoding\sis\sflawed.\sIndeed,\sa\s"BadUU"\sbyte\sin\sthe\smiddle\sis\sjust\sskipped,\sbut\sI\swonder\sabout\sthe\sperturbation\sprocess\sthat\sthis\sis\smodelling.\sIndeed\sif\srandom\sbytes\sare\sinserted\shere\sand\sthere,\sonly\sthose\swhich\sare\sfortunately\soutside\sthe\s32..96\srange\swill\sbe\sfiltered\sout.\sSo\sI\scannot\simagine\sa\spractical\ssituation\swhere\san\suuencoded\sstream\swould\sbe\sdecoded\snon-strictly...\sSo\sthe\squick\spatch\sis\senough\sto\savoid\scrashes,\sthe\sonly\sremaining\serror\sbeing\struncated\sresults\sfor\serror-filled\sinputs.\n\nPat,\syour\sfeeling\s?\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2380293fffffffffffffffffffffffffffffffff
U ferrieux
Z 0876e1617d6c81b894d2b0d3047c8a36