Skip to content
Tcl Source Code Artifact [26d8426fa5]
Login

Artifact [26d8426fa5]

Artifact 26d8426fa5b1ed164f2915974d0f260f23a13a99aa0c8da5cdc8bc5ca54410fc:

Ticket change [26d8426fa5] - Pending ticket [bd94500678e837d7|bd94500678]: <i>SEGFAULT by conversion of unicode (out of BMP) to byte-array.</i> plus 4 other changes by sebres on 2019-02-05 22:36:31.
D 2019-02-05T22:36:31.391
J icomment Well\sthis\smay\sbe\snever\sending\sstory,\sJan.\r\n\r\n[/artifact?udc=1&name=f38fd5f3de77efc4&ln=370-371|This]\sis\scalled\s"bomb\splanting"\sbetween\sdevelopers,\sand\ssuch\sthings\sare\sreally\sticking\sbombs,\sbecause\scould\scause\sendless\scycle\sif\sone\sdoes\snot\stake\scare\s-\slike\snow\sin\smy\sfix\s-\s[42976af3f3035391].\sThere\sis\ssooooo\smany\splaces\sin\sTcl\s(and\ssome\sTcl-modules)\swhere\s"uni-ch"\sis\smodified\safter\scall\sof\sUtfToUniChar\s(so\sin\scase\sof\shigh\ssurrogate\sit\smay\snever\senter\snext\sstep\sand\sdo\slow\ssurrogate,\sso\swill\senter\sendless\scycle).\r\n\r\nAnyway\sI\sdon't\sthink\sthat\sa\spublic\sfunction\sshould\sreturn\s0,\swhere\sit\shas\spreviously\snever\sdo\sthat\s(it\sreturned\salways\sa\sresult\s>=\s1),\sstill\sworse\sit\sis\sdependend\sfrom\svalue\sof\soutput\sparameter\snow\s(so\sas\sresult\sof\sprevious\sexecution).\r\n\r\nJust\sthink\sabout\ssome\swrapping\sthings\slike\stoupper/tolower\shandler's\s(they\sseem\sto\sbe\ssafe\sin\sTcl,\sbut\swhat\sis\sabout\ssome\smodules\sdoiong\ssimilar\sthings\sand\smodifying\s"ch"\sin-between)?\r\n\r\nSo\sI'd\snot\sclose\sthis\sticket,\suntil\swe've\sverified\sall\scalls\sof\sTclUtfToUniChar/Tcl_UtfToUniChar\sin\swhole\sworld\sof\sTcl\s(and\sin\sTcl\sself).
J login sebres
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Pending
K bd94500678e837d7ed50cf6d5000df8f38cd5e39
U sebres
Z 59f79ce542467859760a9071831edb81