Permalink
Show file tree
Hide file tree
1 comment
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8268435: (ch) ChannelInputStream could override readAllBytes
Reviewed-by: alanb, lancea
- Loading branch information
Brian Burkhalter
committed
Oct 1, 2021
1 parent
bb4500d
commit 0786d8b7b367e3aa3ffa54a3e339572938378dca
Showing
3 changed files
with
412 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -339,7 +339,7 @@ public byte[] readNBytes(int len) throws IOException { | ||
int n; | ||
do { | ||
n = read(buf, nread, remaining); | ||
if (n > 0 ) { | ||
if (n > 0) { | ||
nread += n; | ||
remaining -= n; | ||
} else if (n == 0) { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0786d8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Issues