Skip to content

Commit

Permalink
Merge pull request #3491 from matthiasblaesing/error_multiline_search
Browse files Browse the repository at this point in the history
Ensure BufferedInputStream is not initialized with a buffer size of 0
  • Loading branch information
neilcsmith-net committed Jan 24, 2022
2 parents 83fe403 + 51e3aa8 commit a42b661
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -559,7 +559,7 @@ private void initStreams() {
try {
istream = fo.getInputStream();
try {
bstream = new BufferedInputStream(istream, bufferSize);
bstream = new BufferedInputStream(istream, Math.max(1, bufferSize));
} catch (Throwable t) {
if (istream != null) {
istream.close();
Expand Down

0 comments on commit a42b661

Please sign in to comment.