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

Artifact [3cf8450693]

Artifact 3cf8450693ce20bcf6cad1eb0b7341bcdac6f68051c5efefff34dadd91addcaa:

Ticket change [3cf8450693] - Ticket [41b1406f515e0920|41b1406f51] <i>AppendUtfToUtfRep(): undefined behavior involving pointers</i> status still Closed with 5 other changes by chrstphrchvz on 2021-12-15 22:12:10.
D 2021-12-15T22:12:10.345
J closedate 2459564.42511973
J closer chrstphrchvz
J icomment Re\saddendum:\sI\stoo\shad\swondered\sif\s<tt>&lt;</tt>\sshould\sbe\sused\sinstead\sof\s<tt>&lt;=</tt>,\sbut\sultimately\sthought\s<tt>&lt;=</tt>\sis\scorrect\sonce\sI\snoticed\sthat\s<tt>objPtr-&gt;length</tt>\sdoesn’t\sinclude\sthe\sterminating\sNUL,\swhich\s<tt>bytes</tt>\scould\sbe\spointing\sto;\seven\sthough\s<tt>numBytes</tt>\s(the\slength\sto\sappend)\sshould\sbe\s0\sin\ssuch\sa\scase,\scausing\sthe\sfunction\sto\sreturn\searly\sand\snot\sperform\sany\sarithmetic\son\sa\spointer\sto\sunowned\smemory\s(due\sto\s<tt>bytes</tt>\snot\sbeing\srecomputed\safter\sthe\ssource/destination\sbuffer\sis\smoved).
J login chrstphrchvz
J mimetype text/x-fossil-wiki
K 41b1406f515e092067103439e63caad5843039e3
U chrstphrchvz
Z d991f1f33430ef995532b6f601177627