<i>lset on empty list is allowed when index argument is large</i> status still Open with 4 other changes
by
.
D 2026-10-17T16:03:05.993
J foundin 9.0.5,\s9.1.0
J icomment The\sambiguity\scan\sbe\sresolved\slocally\sin\sTclLsetFlat(),\swithout\schanging\sthe\sindex\sencoding\s(so\sTk\sis\snot\saffected):\swhen\sthe\slist\sis\sempty\sand\sthe\sindex\scomes\sback\sas\sTCL_SIZE_MAX,\sevaluate\sit\sagain\sas\sif\sthe\slist\shad\sone\selement,\sand\saccept\sit\sonly\sif\sthis\sgives\s1\s(end+1\sand\ssimilar\sforms).\nProposed\sfix\sin\sbranch\s[/timeline?r=lset-empty-huge-index|lset-empty-huge-index],\stests\slset-18.1\sto\slset-18.5.\s8.6\sis\snot\saffected.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 13d3c0d764fa4cf1c0cf0577924d7a0be5a3fd2b
U serhiy.storchaka
Z e9f106df823e1e83a9e0ed3dd958c3bf