-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursion limit exceeded #850
Comments
We welcome pull requests, but to be honest, this issue is brought up every year or so, and given that it's not a security issue, we would fail at a certain level of nesting due to an API, or would would fail with a segfault. In both cases, the result is failure. |
20201130: @jengelh, as expressed by @balthisar, this is a known issue for FWIIW, in Ubuntu, I was not able to repeat the issue, using your tr.c, and evil.html generation... not sure why... but no problem... Copying evil.html to windows, and tidy triggers a stack overflow abort dialog, after re-entering Background: Read SF Bug 742, as far back as 2005-12-01, with some ideas on a fix, and #343, #633, and maybe others, here... As with those earlier issues, marking this as a bug, adding But as always, look forward to further feedback, ideas, patches, PR, etc... to address this problem, if possible... thanks... |
We have here a html, which seems to cause this for one of our clients. Endless recursion in ParseInline, which crashes some computer, but not others. Workaround: raise stack allocation for thread and hope it finds an end. |
The client would be me. I have some screwed up html which I treated with Tidy. Increasing the stack allocated for the thread fixed the crash. |
5.9.9 fixes this. |
libtidy is missing an API to set a recursion limit. For a bit of nesting of HTML tags, one can crash certain programs that make use of libtidy.
2MB is the typical stack size for glibc-linux threads, and this
evil.html
is only 114KB in size, meaning it generally does not get held up by size limits of MTAs.The text was updated successfully, but these errors were encountered: