Skip to content
Tcl Source Code Artifact [2d1736322b]
Login

Artifact [2d1736322b]

Artifact 2d1736322bdf04ed2311c95f2fc65e0a64f81ef17641d02a9f06a95c797ae62b:

Ticket change [2d1736322b] - Ticket [6e156333bcf233a2|6e156333bc] <i>Contradiction in Tcl_GetSring/Tcl_GetStringFromObj vs Tcl_UpdateStringProc</i> status still Closed with 6 other changes by anonymous on 2019-07-23 08:03:44.
D 2019-07-23T08:03:44.140
J closedate 2458687.83592755
J closer anonymous
J icomment Your\scomment\srestates\swhat\sTHE\sUPDATESTRING\sFIELD\ssays\sand\sI\shave\sno\sissue\swith\sthat.\r\n\r\nHowever,\sthe\s<code>Tcl_GetString</code>\sdocumentation\sis\r\nsaying\ssomething\selse:\r\nit\ssays\syou\scan\scall\s<code>Tcl_GetString</code>\sfrom\sthe\r\n<i>UpdateStringProc</i>\r\nto\sget\sa\smodifiable\sstring\sthat\syou\scan\sthen\schange\s(presumably\swithout\r\nchanging\sits\slength\sor\sat\smost\sshortening\sit).\r\n\r\nBut\sif\sthe\sbytes\smember\sis\s<code>NULL</code>\swhen\r\n<i>UpdateStringProc</i>\sis\scalled,\r\nand\s<i>UpdateStringProc</i>\scalls\s<code>Tcl_GetString</code>,\r\nthen\s<code>Tcl_GetString</code>\r\nwould\shave\sno\srecourse\sbut\sto\scall\s<i>UpdateStringProc</i>\sagain,\r\nleading\sto\sinfinite\srecursion\s(unless\r\nthe\stype\spointer\shad\sbeen\schanged\sbefore\scalling\r\n<code>Tcl_GetString</code>).\r\n\r\nSo\show\sis\sthis\ssupposed\sto\swork?\s\s(Or\sshould\sthe\r\n<code>Tcl_GetString</code>\sdocumentation\r\nbe\schanged?)
J login anonymous
J mimetype text/x-fossil-wiki
J username [email protected]
K 6e156333bcf233a26216e3ee3e94f2761e97a34b
U anonymous
Z 9f141ed325e53e013365a72bf229c246