Skip to content
Tcl Source Code Artifact [f8537d28f5]
Login

Artifact [f8537d28f5]

Artifact f8537d28f50b9f7decd24adf2255acdf4538d3c70fa82056acfe6b18b5734544:

Ticket change [f8537d28f5] - Ticket [bd94500678e837d7|bd94500678] <i>SEGFAULT by conversion of unicode (out of BMP) to byte-array.</i> status still Pending with 3 other changes by jan.nijtmans on 2019-02-06 08:15:02.
D 2019-02-06T08:15:02.951
J icomment Thanks.\sGood\spoint!\s\sI'm\sopen\sfor\ssuggesions\sfor\simprovement,\sbut\sI\sdon't\sthink\sit's\sso\sdangerous\sas\syou\sthink:\swhy\swould\sextensions\smodify\s'ch'\sin-between?\sIt\sonly\shappens\swhen\shandling\sout-of-BMP\scodes,\sTcl\swas\s(up\sto\s8.6)\snot\sprepared\sto\shandle\sthat\sat\sall.\sBut\slet's\sbe\spractical.\r\n\r\nI\salready\sscanned\sall\sof\sthe\sTcl\sworld\sI\scould\sfind\sfor\sdangerous\sTcl_UtfToUniChar(),\sand\sdidn't\sfind\sone.\sYou\sspotted\sthe\sone\sexception\sI\smissed\s...\s\s\s;-)\s\s\s\sI\sbet\sfor\sa\sbottle\sof\sChampagne\sthat\syou\swon't\sfind\sanother\sone!\s(Hoping\sthat\sthat\smotivates\syou\sto\sdo\sa\smore\sintensive\ssearch\sthan\sthat\sI\sdid).\r\n\r\nOne\smore\sremark:\sForget\smy\sremark\sabout\sproducing\sa\ssingle\sbyte\sarray\sentry:\sit\swould\sviolate\sEIAS:\sIt\sinfluences\s"string\slength"\swhen\sthe\sinternal\srepresentation\s\schanges\sto\sbytearray.\sWe\shave\sto\swait\sfor\sTIP\s#497,\sor\sfor\sDon's\s'pure\sbyte\sarray'\simplementation\s(I\sdon't\sthink\sther's\sa\sTIP\syet\sfor\sthis,\sbut\sthere\sis\sa\sbranch):\sOne\sof\sthose\swill\sfix\sthe\sEIAS\sproblem.\r\n\r\nSo,\sI\sthink\syou\scan\sclose\sthis\sticket\snow.\sOr\syou\scan\stake\sthe\schallenge\sand\sprove\sme\swrong:\sI\sdon't\sthink\sthere\sare\sother\splaces\sin\sTcl\sanymore\slike\sthis.\r\n\r\nThanks!
J login jan.nijtmans
J mimetype text/plain
K bd94500678e837d7ed50cf6d5000df8f38cd5e39
U jan.nijtmans
Z 9fedff149d1c4a0b21c0e2b8526eabb9