Skip to content
Tcl Source Code Artifact [033780f006]
Login

Artifact [033780f006]

Artifact 033780f00636e066ef1895fe72367c1baa652befa64ea5ffb2ddd55bced45b8d:

Ticket change [033780f006] - 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 serhiy.storchaka on 2026-10-18 18:49:47.
D 2026-10-18T18:49:47.747
J icomment All\sfour\sreproduced\son\strunk.\sProposed\sfix\sin\sbranch\s[/timeline?r=abstract-list-hook-fixes|abstract-list-hook-fixes]:\n\s\s*\s\sF1:\s<nowiki>[lpop]</nowiki>\snow\stakes\sa\sreference\sto\sthe\sresult\sof\s<tt>setElementProc</tt>,\slike\s<nowiki>[lset]</nowiki>.\sThe\scompiled\smulti-index\s<nowiki>[lset]</nowiki>\s(<tt>INST_LSET_FLAT</tt>)\shad\sthe\ssame\smissing\sreference.\n\s\s*\s\sF2:\s<nowiki>[join]</nowiki>\suses\s<tt>getElementsProc</tt>\sfor\sany\snon-empty\slist.\n\s\s*\s\sF3:\sthe\ssame\suse-after-free\sas\s[526b01c0b9];\sits\sfix\sin\sbranch\s[/timeline?r=lset-abstract-list-uaf|lset-abstract-list-uaf]\smakes\s<tt>lset\sl\s{1\s0}\sX</tt>\sgive\s<tt>a\sX\sc</tt>.\n\s\s*\s\sF4:\sObjectType.3\srequires\s<tt>indexProc</tt>\sto\saccept\sout-of-range\sindices,\sso\sthe\score\smay\spass\s-1;\sthe\sbug\sis\sin\slstring's\s<tt>indexProc</tt>,\swhich\snow\schecks\s<tt>index\s<\s0</tt>.\n\nAlso\sfixed:\s<tt>lset\sl\sX</tt>\swithout\sindices\scalled\s<tt>setElementProc</tt>\swith\sno\sindices\s(lstring\sthen\sfails\swith\s"bad\sindex").\sTests\sabstractlist-5.1\sto\s5.4.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 409a4e5f2853644f6e78dce8f8d0d68a0d393dde
U serhiy.storchaka
Z 76b6acbf6ea752ed1fc225878bfb4fd6