Merge pull request #1413 from leofernandesmo:fix-java-brotliinputstream-null-buffer PiperOrigin-RevId: 889691589
diff --git a/java/org/brotli/dec/BrotliInputStream.java b/java/org/brotli/dec/BrotliInputStream.java index 3e640b1..628a417 100644 --- a/java/org/brotli/dec/BrotliInputStream.java +++ b/java/org/brotli/dec/BrotliInputStream.java
@@ -172,7 +172,7 @@ copyLen += state.outputUsed; copyLen = (copyLen > 0) ? copyLen : END_OF_STREAM_MARKER; return copyLen; - } catch (BrotliRuntimeException ex) { + } catch (BrotliRuntimeException | IllegalStateException ex) { throw new IOException("Brotli stream decoding failed", ex); }
diff --git a/python/_brotli.c b/python/_brotli.c index 7f8e9b8..88a4a9a 100644 --- a/python/_brotli.c +++ b/python/_brotli.c
@@ -193,7 +193,7 @@ PyDoc_STRVAR(brotli_Decompressor_can_accept_more_data_doc, "Checks if the decoder instance can accept more compressed data.\n" "If the 'process()' method on this instance of decompressor was never\n" -"called with 'max_length', this method will always return True.\n" +"called with 'output_buffer_limit', this method will always return True.\n" "\n" "Signature:" " can_accept_more_data() -> bool\n"