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

Artifact [3d902ef7d4]

Artifact 3d902ef7d487c10a755700b1b51eb234e13eee5d:

Ticket change [3d902ef7d4] - New ticket [1693986fffffffff|1693986fff] <i>Buggy string handling in command traces?</i>. by msofer on 2007-04-04 01:26:18.
D 2007-04-04T01:26:18
J assignee dgp
J cmimetype text/plain
J comment Looking\sat\sTEOv\sand\sTEOvI,\strying\sto\sfollow\sthe\strace\scode,\sI\sthink\sI\sfound\sa\sfew\spossible\sbugs\srelated\sto\sthe\s'command'\sstring\s(no\sdemos\syet).\n\n(1)\sTEOv\sonly\sgenerates\sa\s'command'\sstring\sfrom\sobjv\swhen\sthere\sare\sinterp-wide\straces,\sbut\sfails\sto\sdo\sso\son\straces\son\sthe\sspecific\scommand.\sThis\sis\sneeded\slater\son,\sespecially\ssince\straces\suse\sthe\sstring\sinterface.\sNote\sthat\sthis\shints\sat\smoving\sthe\sstring\sgeneration\sto\sTEOvI,\safter\sTcl_GetCommandFromObj\shas\shappened.\n\n(2)\sTclCheckInterpTraces\sand\sTclCheckExecutionTraces\saccept\sa\scounted\s(not\snul-terminated)\sstring\sfor\sthe\s'command',\sbut\spass\son\sjust\sthe\schar*\sand\snot\sthe\scount.\sThe\sreceiver\shas\sno\sway\sto\savoid\sa\sbuffer\soverflow\sin\scase\sthe\sstring\swas\snot\snul-terminated.\sBoth\sTEBC\sand\sTcl_Eval\scall\sTEOvI\swith\scounted\sstrings\s(from\sthe\sbc\ssource\sresp\sfrom\sa\sparse\stoken),\sso\sthat\sthe\sproblem\sis\snot\sjust\stheoretic.\n\nI\ssee\sone\spossible\ssolution:\n\n(a)\sgenerate\snul-terminated\sstrings\sfor\sthe\straces,\swith\sbetter\sdetection\sof\swhen\sit\sis\sneeded.\sThis\s\nshould\shappen\sin\sTCIT/TCET.\sI\sam\snot\sso\sworried\sof\sthe\sduplication\sof\seffort\sin\scase\sboth\sinterp-wide\sand\scommand-specific\straces\sare\sin\splace\n\n(b)\smodify\sthe\sapi\sso\sthat\sthe\suser\sgenerates\sa\sstring\sitself\sfrom\sobjc/objv\sif\snone\sis\ssupplied.\sThis\scould\swell\shappen\sin\sTCIT\sand\sTCET,\sinstead\sof\sburdening\sthe\scallers\sto\sdo\sso.\n\nCandidate\spatch\sforthcoming.
J foundin obsolete:\s8.5a6
J is_private 0
J priority 8
J resolution None
J status Open
J submitter msofer
J subsystem 46.\sTraces
J title Buggy\sstring\shandling\sin\scommand\straces?
J type Bug
K 1693986fffffffffffffffffffffffffffffffff
U msofer
Z 731943ed3c5aedaac662348700a1600c