Skip to content
Tcl Source Code Artifact [da4d956490]
Login

Artifact [da4d956490]

Artifact da4d956490846c0156a8cc59dd4d9d2a01890918:

Ticket change [da4d956490] - New ticket [2878945fffffffff|2878945fff] <i>Tcl_ExternalToUtf(...dst, dstLen,...) writes to dst[dstLen]</i>. by dgp on 2009-10-14 14:56:01.
D 2009-10-14T14:56:01
J assignee msofer
J cmimetype text/plain
J comment The\sdocs\sof\sTcl_ExternalToUtf()\sare\sunclear\son\sthe\nboundaries\sof\sthe\swrite\sbuffer.\sThey\ssay\s"...\sand\sup\nto\sdstLen\sconverted\sbytes\sare\sstored\sin\sdst."\swhich\nsuggests\sbytes\swill\sbe\swritten\sin\sdst[0]\sup\nto\sdst[dstLen-1].\sAnd\sthat\sappears\sto\sbe\san\saccurate\ndescription\sof\swhat\sthe\sunderlying\sToUtfProc()\sdoes.\nHowever,\sthen\sTcl_ExternalToUtf()\sappends\sa\sterminating\nNUL\scharacter,\sand\sif\sthe\sToUtfProc\shas\sused\sall\sdstLen\nbytes,\sT_ETU\swrites\sto\sdst[dstLen].
J foundin obsolete:\s8.5.7
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 10.\sObjects
J title Tcl_ExternalToUtf(...dst,\sdstLen,...)\swrites\sto\sdst[dstLen]
J type Bug
K 2878945fffffffffffffffffffffffffffffffff
U dgp
Z 0d46c51f10ee12eabe34235ad52bd534