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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drogin
Copy link
Contributor

@drogin drogin commented Aug 9, 2019

This should likely fix reported issue #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 added a commit to smoope/clamav-java that referenced this pull request Mar 26, 2020
Fixed potential array out of bounds exception, issue solita#14 solita#16
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.

1 participant