Skip to content
Tcl Source Code Artifact [17afaa6719]
Login

Artifact [17afaa6719]

Artifact 17afaa67190ab09baae1009a568ad9283e63d082a8189b176a2f00b2edd08665:

Ticket change [17afaa6719] - Ticket [bd94500678e837d7|bd94500678] <i>SEGFAULT by conversion of unicode (out of BMP) to byte-array.</i> status still Open with 3 other changes by dgp on 2019-03-01 20:34:53.
D 2019-03-01T20:34:53.642
J icomment \r\nA\sfix\sis\snow\scommitted\sto\sthe\s8.7\sand\strunk\sbranches.\r\n\r\nTcl_UtfToUniChar()\swas\scompletely\sbroken\sfor\ssingle-byte\sUTF-8\ssequences.\r\nThey\sgenerated\sTcl_UniChar\svalues\spulled\sfrom\suninitialized\smemory.\r\n\r\nIt\sis\sdifficult\sto\sbelieve\sthat\sa\stotal\sbreakage\slike\sthis\swas\snot\sdetected\r\nby\sthe\sTcl\stest\ssuite.\sEither\swe\sdo\snot\stest\sthe\sroutine\sat\sall,\sor\sall\sof\r\nour\stests\shave\sbeen\sdisabled\sin\stheir\seffectiveness\sby\sinternal\sreplacement\r\nof\scalls\sto\sthe\sbroken\sfunction\sby\sinvocation\sof\smacros\sthat\sfunction\scorrectly.\r\nThis\sneeds\sto\sbe\spursued\sand\scorrected.\r\n\r\nI\snote\salso\sthat\sit\sappears\sthat\sthe\snew\sstealth\sconversion\sto\scp1252\sencoding\r\nraises\sthe\spossibility\sof\sthe\sencoded\soutput\sbeing\slonger\sthan\sthe\sencoded\s\r\ninput\s(single\sbytes\sreplaced\sby\sdouble\sbytes).\sThis\swill\supset\sthe\r\nexpectations\sof\ssome\scallers\sthat\suse\sthese\sTcl\sroutines\sto\sdo\sin-place\r\nprocessing\sin\sa\ssingle\sbuffer.
J login dgp
J mimetype text/plain
K bd94500678e837d7ed50cf6d5000df8f38cd5e39
U dgp
Z 37d9ee10875a21cea8ff7b99d9464d36