Artifact
5bf2cfe6476a47318af0165d071e3ffbd8139ae8c270a109147d23b7a4805718:
Ticket change
[5bf2cfe647]
- New ticket
[6e156333bcf233a2|6e156333bc] <i>Contradiction in Tcl_GetSring/Tcl_GetStringFromObj vs Tcl_UpdateStringProc</i>.
by
anonymous on
2019-07-22 20:00:32.
D 2019-07-22T20:00:32.383
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Tcl_GetString\sdocumentation\s(http://www.tcl.tk/man/tcl8.6/TclLib/StringObj.htm)\ssays:\r\n[The\sobject's\sstring\srepresentation]\sis\spassed\sback\sas\sa\swritable\spointer\sso\r\nthat\sextension\sauthor\screating\stheir\sown\sTcl_ObjType\swill\sbe\sable\sto\smodify\s\r\nthe\sstring\srepresentation\swithin\sthe\sTcl_UpdateStringProc\sof\stheir\sTcl_ObjType.\r\n\r\nTHE\sUPDATESTRINGPROC\sFIELD\sin\shttp://www.tcl.tk/man/tcl8.6/TclLib/ObjectType.htm\ssays:\r\nobjPtr's\sbytes\smember\sis\salways\sNULL\swhen\sit\sis\scalled.\r\n\r\nThis\swould\sseem\sto\sbe\sa\scontradiction:\sif\sthe\sbytes\smember\sis\sNULL,\sthen\s\r\nupdateStringProc\swould\sneed\sto\sbe\scalled\sto\sset\sit\sto\snon-null;\strying\sto\s\r\ninvoke\sTcl_GetString\sor\sTcl_GetStringFromObj\swould\sjust\sresult\sin\sa\s\r\nrecursive\scall\sto\supdateStringProc\s--\sunless\sthe\stypePtr\swere\stemporarily\s\r\nchanged\sto\sa\sdifferent\stype.\r\n\r\nIs\sthat\s(temporary\smodification\sof\sthe\stypePtr)\sthe\sintended\smeaning?\r\n\r\nBTW:\sI\sdon't\sknow\show\sto\schange\smy\spassword\son\sthis\ssite.
J foundin 8.6
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 9ab7cae6a79106af802b939550556c6a60bbac54
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 10.\sObjects
J title Contradiction\sin\sTcl_GetSring/Tcl_GetStringFromObj\svs\sTcl_UpdateStringProc
J type Bug
K 6e156333bcf233a26216e3ee3e94f2761e97a34b
U anonymous
Z 24af47ad816ee17c2dc449471c00da79