You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5ca367f
Browse filesBrowse the repository at this point in the historyBrowse files
XMLParser: detect cyclic <include> instead of overflowing the stack (#1250)
A tree file that includes itself, directly or through other files, made
loadDocImpl() recurse until the process crashed with a stack overflow
(SIGSEGV), because the include loop never checked whether a file was
already being loaded.
Track the normalized paths of the files in the active include chain and
throw a RuntimeError naming the repeated file. The chain is a stack
(pushed before, popped after each include), so a file included twice
from different branches is not reported as a cycle; it is reset by the
top-level loadFromFile()/loadFromText(), so a failed load leaves no
stale state in the factory's parser.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments