Skip to content
Tcl Source Code Artifact [3e4035cb90]
Login

Artifact [3e4035cb90]

Artifact 3e4035cb90b35f0f3b1d9fab5b806ce6ff170451:

Ticket change [3e4035cb90] - Ticket [1122671fffffffff|1122671fff] <i>SEGV in Tcl_UtfToUniChar with unaligned string</i> status still Closed with 4 other changes by nobody on 2007-02-08 15:57:02.
D 2007-02-08T15:57:02
J icomment Logged\sIn:\sNO\s\n\nIf\sTCL_UTF_MAX\svalues\sgreater\sthan\s3\swill\snow\sbe\stotally\sbroken\sby\sthis\nbug\sfix,\sthe\sbuild\sshould\sfail\sif\sTCL_UTF_MAX\sis\sset\sto\s4\sor\slarger.\n\nBut\sit\swas\snot\snecessary\sto\sadd\ssuch\san\sassumption\sto\sfix\sthis\sbug.\nSomething\sas\ssimple\sas:\n\n\s\s\s\s\s\s\s\s\smemcpy(dst,\s&ch,\ssizeof(Tcl_UniChar));\n\s\s\s\s\s\s\s\s\sdst\s+=\ssizeof(Tcl_UniChar);\n\nwould\shave\sworked\sjust\sfine.\n\nThe\scompiler\sknows\sthe\salignment\sof\sthe\srespective\stypes,\sand\ssince\sthis\smemcpy\nis\sso\ssmall,\sthe\scompiler\scan\strivially\sexpand\sthis\sinline.\s\sSo\sthere\sare\nno\sperformance\sregression\sconsiderations\swith\sfixing\sthe\sbug\sthis\sway\seither.\n\n
J login nobody
J mimetype text/plain
J username nobody
K 1122671fffffffffffffffffffffffffffffffff
U nobody
Z 2c138e45a7c692fee9c55f35679c2b31