From 4fd2a0668c1630d65a10f602647e9569954ece21 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 9 Mar 2023 16:42:10 +0100 Subject: check for inflater return code added --- src/main/java/org/uic/barcode/staticFrame/StaticFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/uic') diff --git a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java index 8dc1adb..30bbe3f 100644 --- a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java +++ b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java @@ -506,7 +506,7 @@ public class StaticFrame { inflater.setInput(inflaterInput); while (!inflater.finished()) { int count = inflater.inflate(inflatedDataBuffer,0,2000); - if (inflater.needsDictionary()) { + if (inflater.needsDictionary() || count == 0) { break; } outputStream.write(inflatedDataBuffer, 0, count); -- cgit v1.2.3