Skip to content
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

Fix StackOverflow exception caused by many ampersand and semicolins i… #1281

Merged
merged 2 commits into from
Sep 24, 2019

Conversation

berickson1
Copy link
Contributor

…n attribute values

The original attributeValueCharRef function took a continutation parameter that was always a reference back to the caller. Splitting this into two functions (one where each case is handled) removes the non-tail recursive call.

This can occur if an html attribute has a bunch of encoded html inside of it

@dsyme
Copy link
Contributor

dsyme commented Sep 10, 2019

@berickson1 Could you add a test case for this?

@berickson1
Copy link
Contributor Author

To do this I'm going to have to enable tail calls in FSharp.Data debug builds - since tail recursion is what prevents this from crashing. I'll update the PR to include this and let you decide if it's desirable or not

…n attribute values

The original attributeValueCharRef function took a continutation parameter that was always a reference back to the caller. Splitting this into two functions (one where each case is handled) removes the non-tail recursive call.

This can occur if an html attribute has a bunch of encoded html inside of it
@dsyme dsyme merged commit 75bd4df into fsprojects:master Sep 24, 2019
@dsyme
Copy link
Contributor

dsyme commented Sep 24, 2019

Thanks for adding the test case!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants