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

Fixed potential array out of bounds exception, issue #14 #16 #1

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

vicmosin
Copy link
Member

This should likely fix reported issue solita#14

Because we do the write-call before checking the read response, we might try to write with -1 as the array index
Additionally, I'm not entirely sure of the purpose of the is.available() call. We presumably want to exhaust and read everything until end of stream anyway? This is where I might be wrong though.

@vicmosin vicmosin merged commit 5a3f97c into smoope:master Mar 26, 2020
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