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 parse stuck in loop causing 500 timeout #3415

Merged
merged 1 commit into from
Jul 21, 2015
Merged

Fix parse stuck in loop causing 500 timeout #3415

merged 1 commit into from
Jul 21, 2015

Conversation

jwilder
Copy link
Contributor

@jwilder jwilder commented Jul 21, 2015

The points.Fields() func would would get stuck in a scanning loop in newFieldsFromBinary() because the original fields section of the input was not parsed correctly. skipWhitespace would skip over escape chars when it should only skip over whitespace. It resulted in the fields section sometimes being set =1 instead of \a=1. The =1 value cause the infinite loop in newFieldsFromBinary()

Fixes #3411

@otoolep
Copy link
Contributor

otoolep commented Jul 21, 2015

Can you provide a 1-line explanation of why this works?

@jwilder
Copy link
Contributor Author

jwilder commented Jul 21, 2015

Updated PR description.

@otoolep
Copy link
Contributor

otoolep commented Jul 21, 2015

+1

jwilder added a commit that referenced this pull request Jul 21, 2015
Fix parse stuck in loop causing 500 timeout
@jwilder jwilder merged commit 8c715f7 into master Jul 21, 2015
@jwilder jwilder deleted the jw-3411 branch July 21, 2015 20:14
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