mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
fix BufferedInputStream.read to not read more than specified length
This commit is contained in:
parent
84520cde51
commit
d00f4c5390
@ -67,6 +67,7 @@ public class BufferedInputStream extends InputStream {
|
||||
break;
|
||||
} else {
|
||||
count += c;
|
||||
length -= c;
|
||||
|
||||
if (in.available() <= 0) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user