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

Limit length of strings while building #137

Merged
merged 2 commits into from
Aug 3, 2017
Merged

Conversation

boulter
Copy link
Contributor

@boulter boulter commented Aug 3, 2017

In #108, we limited the size of output as we concatenated nodes. This did not prevent the case of a single node (tag) producing a large string. This replaces the standard StringBuilder with a builder that refuses to grow over the specified size in every place where we could possibly generate a very large string.

@hs-lsong @jmagnarelli-hs

Copy link
Collaborator

@hs-lsong hs-lsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@boulter boulter merged commit 9899421 into master Aug 3, 2017
@boulter boulter deleted the limit-string-builder branch August 3, 2017 20:31
@jmagnarelli-hs
Copy link
Contributor

A little late, but LGTM as well.

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.

4 participants