<i>transchan over a refchan: segmentation fault</i> status still Open with 6 other changes
by
.
D 2018-11-15T16:20:48.081
J assignee sebres
J icomment I\shave\srewritten\sthis\sfor\sdebug\spurposes\swithout\stcllib\sand\ssimplest\sproc-handlers\swith\sdebugging\sinfo:\r\n\r\nThis\sproduces\sfollowing\sresult...\r\n<code><pre\sstyle="padding:10pt;">\r\n\s\s***********\sinitialize\src0\s{read\swrite}\s-\r\npush\src0\s...\r\n\s\s*********==\sinitialize\srt0\s{read\swrite}\s-\r\nread\sfrom\src0\s...\r\n\s\s***********\sread\src0\s4096\s-\scurrent\spos:\s0,\scurrent\sbuf:\s189\r\n\s\s\s\s*********\spos:\s189,\sr:\s`T3JpZ2luYWwtUmVjaXBpZW50OiA8L2ZheD1ibHViYkBndW1taS5ib290PgpBY3Rpb246IGZhaWxl\r\n\s\sZApEaWFnbm9zdGljLUNvZGU6IHNtdHA7IDU1MCAjNS4xLjAgQWRkcmVzcyByZWplY3RlZC4KUmVt\r\n\s\sb3RlLU1UQTogNTMuMjQuMjgyLjE1MA=`\s--\r\n\s\s*********==\sread\srt0\s{T3JpZ2luYWwtUmVjaXBpZW50OiA8L2ZheD1ibHViYkBndW1taS5ib290PgpBY3Rpb246IGZhaWxl\r\n\s\sZApEaWFnbm9zdGljLUNvZGU6IHNtdHA7IDU1MCAjNS4xLjAgQWRkcmVzcyByZWplY3RlZC4KUmVt\r\n\s\sb3RlLU1UQTogNTMuMjQuMjgyLjE1MA=}\s-\scurrent\spos:\s0,\scurrent\sbuf:\s0\r\n\s\s*********==\sbase64_Code\s`T3JpZ2luYWwtUmVjaXBpZW50OiA8L2ZheD1ibHViYkBndW1taS5ib290PgpBY3Rpb246IGZhaWxl\r\n\s\sZApEaWFnbm9zdGljLUNvZGU6IHNtdHA7IDU1MCAjNS4xLjAgQWRkcmVzcyByZWplY3RlZC4KUmVt\r\n\s\sb3RlLU1UQTogNTMuMjQuMjgyLjE1MA=`\r\n\s\s*********==\sbase64_Complete\s`T3JpZ2luYWwtUmVjaXBpZW50OiA8L2ZheD1ibHViYkBndW1taS5ib290PgpBY3Rpb246IGZhaWxl\r\n\s\sZApEaWFnbm9zdGljLUNvZGU6IHNtdHA7IDU1MCAjNS4xLjAgQWRkcmVzcyByZWplY3RlZC4KUmVt\r\n\s\sb3RlLU1UQTogNTMuMjQuMjgyLjE1MA=`\r\n\s\s*********==\sbase64_Complete,\sret:\s187\r\n\s\s*********==\sbase64_Code,\sret:\s`Original-Recipient:\s</[email protected]>\r\nAction:\sfailed\r\nDiagnostic-Code:\ssmtp;\s550\s#5.1.0\sAddress\srejected.\r\nRemote-MTA:\s53.24.282.150`\r\n\s\s*********==\sread\srt0,\sres:\s`Original-Recipient:\s</[email protected]>\r\nAction:\sfailed\r\nDiagnostic-Code:\ssmtp;\s550\s#5.1.0\sAddress\srejected.\r\nRemote-MTA:\s53.24.282.150`\r\n\s\s***********\sread\src0\s3960\s-\scurrent\spos:\s189,\scurrent\sbuf:\s189\r\n\s\s\s\s*********\spos:\s189,\sr:\s``\s--\r\n\r\n\s\s*********==\sdrain\srt0\s\s-\scurrent\spos:\s0,\scurrent\sbuf:\s1\r\n\s\s*********==\sdrain\srt0,\srest:\s`=`\r\nmax\ssize\sfor\sa\sTcl\svalue\s(2147483647\sbytes)\sexceeded\r\n</pre></code>\r\nHow\sone\scan\spossibly\ssee,\sthe\sproc\sbase64_Complete\s(using\sin\stransform\schannel\srt0)\scalculates\sinvalid\soffset\s(187\sin\sopposite\sto\s189\sof\sthe\soriginal\sbuffer\sin\sreflected\schannel\src0),\sbut\sfull\sbuffer\sis\salready\stransformed.\r\n\r\nFurther\sinvestigation\sshows\sthat\sbinary\sdecode\son\s"empty"\sbase64\sbuffer\s(only\s"=")\sproduces\sa\spanic,\swith\swrong\sgot\sout\s(so\ssegfault)\swithin\sthe\sdrain-handler:\r\n<code><pre\sstyle="padding:10pt;">\r\n%\sbinary\sdecode\sbase64\s=\r\nmax\ssize\sfor\sa\sTcl\svalue\s(2147483647\sbytes)\sexceeded\r\n</pre></code>\r\nWiP.
J login sebres
J mimetype text/x-fossil-wiki
J priority 7\sHigh
J subsystem 16.\sCommands\sA-H
K 00d04c4f120904aa0c6bd76d542d57f4a0dd2eb3
U sebres
Z b20fb76c44ee2bb43488b80be9134937