Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

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

Merged
vicmosin merged 1 commit into
smoope:masterfrom
drogin:master
Mar 26, 2020
Merged

Fixed potential array out of bounds exception, issue #14 #16#1
vicmosin merged 1 commit into
smoope:masterfrom
drogin:master

Conversation

@vicmosin
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants