Skip to content
Tcl Source Code Artifact [caa598dd67]
Login

Artifact [caa598dd67]

Artifact caa598dd67e11f1a70c3638726db497905b06a22e2f06e5eed5f9567c6ebc819:

Ticket change [caa598dd67] - Ticket [409a4e5f2853644f|409a4e5f28] <i>Abstract-list hooks: lpop and join/lset crash, lindex reads before buffer with a negative index</i> status still Open with 3 other changes by rocketship98 on 2026-10-18 19:08:01.
D 2026-10-18T19:08:01.042
J icomment Thanks,\sthis\scaused\sa\scrash\sin\smy\sown\sextension\sthat\sclaude\shelped\sme\swrite\sand\she\ssays\sthere's\sa\sdocumention\sgap:\r\n\r\nAddition\sto\sF1:\sdoc/ObjectType.3\s(SETELEMENT\ssection)\sis\ssilent\son\stwo\spoints,\sand\sthe\score’s\scallers\sdisagree\son\sthe\ssecond.\r\n\r\nlpop\scalls\ssetElementProc\swith\svalueObj\s==\sNULL,\smeaning\s“remove\sthis\selement”.\sA\stype\swritten\sfrom\sthe\smanual\scrashes\son\slpop\sl\s1.\sA\sreal\sextension\s(a\sbit-array\stype)\ssegfaulted\sthis\sway.\sThe\sonly\shint\sis\sa\scomment\sin\sTclLsetFlat\s(“NULL\sto\s‘lpop’”).\r\nThe\smanual\sdoes\snot\ssay\swho\sowns\sthe\sreference\scount\sof\sthe\sreturned\sTcl_Obj.\slset\s(tclCmdIL.c\s~4295)\sincrements\sit,\swhile\slpop\s(~2670-2682)\scalls\sTclUndoRefCount\son\sit\swith\sno\sprior\sincrement,\swhich\sis\sthe\sbug\sin\sF1.\r\n\r\nSuggest\sdocumenting\sboth:\sthat\svalueObj\smay\sbe\sNULL\sfor\slpop,\sand\swhether\sthe\sreturned\sobject\scomes\swith\sa\sreference.\sThe\sfix\sfor\sF1\sthen\sfollows\sfrom\sthe\sstated\srule.
J login rocketship98
J mimetype text/plain
K 409a4e5f2853644f6e78dce8f8d0d68a0d393dde
U rocketship98
Z acd29692d8e9df1fe03237d9bab6b2c3