Skip to content
Tcl Source Code Artifact [4308e5f95b]
Login

Artifact [4308e5f95b]

Artifact 4308e5f95bdd3428ed433cb86f93f6552e523ddf:

Ticket change [4308e5f95b] - Ticket [2738427fffffffff|2738427fff] <i>Tcl_NumUtfChars(...) no overflow check</i> status still Closed with 5 other changes by dgp on 2017-06-08 12:54:47.
D 2017-06-08T12:54:47.126
J closedate 2457913.03804544
J closer dgp
J icomment \r\nThanks\sfor\sfinding\sand\saddressing\sthis\sold\sticket.\r\n\r\nI'm\sworried\sit's\snot\squite\sa\scorrect\sanswer.\r\n\r\nThe\soverflow\sdetection\sis\sonly\sdone\safter\r\nthe\sloop\sends,\sand\snot\sat\seach\spass\sthrough\r\nthe\sloop.\s\sThis\sleaves\sopen\sthe\spossibility\r\nthat\si\scould\scircle\sall\sthe\sway\sback\sto\sa\r\nnon-negative\svalue\sbefore\s'\\0'\sis\sseen\sand\r\nwe\sget\sa\scount\sthat's\s(UINT_MAX\s+\s1)\stoo\ssmall.\r\n\r\nSince\sthe\sreturn\stype\scan\sonly\shandle\sa\svalue\r\nup\sto\sINT_MAX,\sand\ssince\sthere's\sno\serror\r\nreporting\schannel\savailable,\sshould\sthis\sroutine\r\njust\spanic\sfor\sinputs\soutside\sthat\ssupportable\srange?
J login dgp
J mimetype text/plain
K 2738427fffffffffffffffffffffffffffffffff
U dgp
Z 29efa0666d4ba81af052886b78c6c665