Artifact
3fdfbb0edde540489ca95373e786576bd831dd09056f24e3f43ad52d2c688d91:
Ticket change
[3fdfbb0edd]
- New ticket
[9c45616627b30a6f|9c45616627] <i>Infinite loop in TclFSGetAncestorPaths</i>.
by
anonymous on
2026-02-04 05:40:24.
D 2026-02-04T05:40:24.632
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment I\swas\sbuilding\san\sapp\swith\sthe\stcl_library\sembedded\sin\sin\sand\smounted\sit\swith\sTclZipfs_MountBuffer\sand\sset\sthe\s$tcl_library\svariable.\r\n\r\nThen\scalling\sTcl_Init()\scaused\sit\sto\shang.\sAfter\slooking\sat\sit\swith\sa\sdebugger\sit\slooks\slike\sthere\sis\san\sinfinite\sloop\sat\sthe\send\sof\sTclFsGetAncestorPaths()\sin\sgeneric/tclPathObj.c\r\n\r\n```\r\n\s\s\s\scount\s=\si;\r\n\s\s\s\s/*\sFill\sremaining\swith\sNULL\s*/\r\n\s\s\s\swhile\s(i\s<\snumPaths)\s{\r\n\tpathsPtr[i]\s=\sNULL;\r\n\s\s\s\s}\r\n\s\s\s\sTcl_DecrRefCount(splitPathPtr);\r\n```\r\n\r\nIt\sseemed\sto\sfix\sthings\sif\sI\sjust\sincrement\s`i`\sin\sthe\sloop\r\n\r\n```\r\n\s\s\s\scount\s=\si;\r\n\s\s\s\s/*\sFill\sremaining\swith\sNULL\s*/\r\n\s\s\s\swhile\s(i\s<\snumPaths)\s{\r\n\tpathsPtr[i]\s=\sNULL;\r\n\ti+=1\r\n\s\s\s\s}\r\n\s\s\s\sTcl_DecrRefCount(splitPathPtr);\r\n```
J is_private 0
J login anonymous
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title Infinite\sloop\sin\sTclFSGetAncestorPaths
J type Bug
K 9c45616627b30a6fc8a2f15d6d8868e661113b16
U anonymous
Z 5d18ba3e37e82c890f12bd514ec2913f