Skip to content
Tcl Source Code Artifact [e3104d5d36]
Login

Artifact [e3104d5d36]

Artifact e3104d5d36f0c49df637231557c4493db8c85114688fcf1573632889296646d6:

Ticket change [e3104d5d36] - Ticket [f5eadcbf9a6b1b4c|f5eadcbf9a] <i>passing pointer to uninitialized memory leads Tcl_UniCharToUtf() to corrupt data</i> status still Pending with 3 other changes by pooryorick on 2023-04-26 02:36:54.
D 2023-04-26T02:36:54.082
J icomment This\sis\snot\sa\snon-issue.\s\sCommit\s[a61fef8429dfff4b]\swas\srecently\smoved\soff\strunk\sdue\sto\sthe\sfact\sthat\sit\scaused\stest\sformat-2.19\sto\sfail\sunder\sa\sbuild\sof\sTCL_UTF_MAX\s=\s3.\sThis\sbug\sis\sthe\scause\sof\sthat\sfailure.\s\sIn\severy\sspot\sexcept\sone\s"TCL_UTF_MAX\s<\s4"\swould\snot\sbe\sincorrect.\s\sI\sconsidered\sadding\sthose,\sbut\sI\sthink\sTcl_UniCharToUtf()\sis\san\sexample\sof\sthe\stype\sof\scoding\sthat\sthere\sshould\sbe\szero\stolerance\sfor,\sas\ssmuggling\sflags\sand\sstate\sinto\sexisting\sargument\sturns\sthe\scode\sinto\sa\sbooby\strap\sfor\sfuture\sdevelopers.\r\nSee\s[https://web.stanford.edu/~ouster/cgi-bin/cs190-winter18/lecture.php?topic=complexity|The\sNature\sof\sComplexity]\sby\sJon\sOusterhout.\r\n\s\sInstead,\sthe\ssignature\sof\sTcl_UniCharToUtf()\sshould\sbe\schanged\sto\sexplicitly\ssupport\sthe\snew\sfunctionality.\s\sAlso,\sTCL_UTF_MAX\s=\s3\sshould\sbe\sremoved\sfrom\strunk\sand\sfrom\sTcl\s9.\s\sIt\sno\slonger\sserves\sany\spurpose,\sand\sis\sresponsible\sfor\sat\sleast\sthis\sbug.\s\sFor\swhatever\sreason,\svalgrind\sis\snot\spicking\sup\son\sthis\sissue.\s\s\r\n\r\nJan,\syou\swon't\sbe\sable\sto\screate\sa\stest\scase\sfor\sthis\sissue,\syet\sit\sis\sreal.\s\sAfter\sthis\sis\sfixed\sand\smy\scommit\smentioned\sabove\sis\sreapplied\sto\strunk,\sformat-2.19\swill\sbe\sone\scanary\sfor\sthe\sissue.
J login pooryorick
J mimetype text/x-fossil-wiki
K f5eadcbf9a6b1b4cff5aaf0da5aa5706430dfb7c
U pooryorick
Z 3f7a6288147fafb4db7ac9e0d0339925