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

prevent read beyond end of buffer when string ends with malformed utf #118

Merged
merged 1 commit into from
Feb 26, 2017

Conversation

mjerris
Copy link
Contributor

@mjerris mjerris commented Feb 23, 2017

Without this change, we can read beyond the end of the buffer by having /u at the end of the string being parsed. Move length check before the read to avoid.

@FSMaxB
Copy link
Collaborator

FSMaxB commented Feb 26, 2017

Wow, I feel embarrassed. Thanks for finding and fixing this.

@FSMaxB FSMaxB merged commit 29f312d into DaveGamble:master Feb 26, 2017
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