mirror of
https://github.com/corda/corda.git
synced 2025-06-15 05:38:14 +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;
|
||||
} else {
|
||||
count += c;
|
||||
length -= c;
|
||||
|
||||
if (in.available() <= 0) {
|
||||
break;
|
||||
|
Reference in New Issue
Block a user