mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
fix BufferedInputStream.read to not read more than specified length
This commit is contained in:
@ -67,6 +67,7 @@ public class BufferedInputStream extends InputStream {
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
count += c;
|
count += c;
|
||||||
|
length -= c;
|
||||||
|
|
||||||
if (in.available() <= 0) {
|
if (in.available() <= 0) {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user