This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 4ff4c97f8d8681115413e29de1706ceb39643ff7
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Aug 11 09:28:52 2026 -0400

    [Deflate64] Deflate64CompressorInputStream now throws ArchiveException
    instead of IllegalArgumetException/IllegalStateException.
---
 src/changes/changes.xml                                                 | 1 +
 .../compress/compressors/deflate64/Deflate64CompressorInputStream.java  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index db3f63136..b2a08c7e0 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -149,6 +149,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Stanislav Fort, Gary 
Gregory">[Snappy] Fix for when a valid raw Snappy stream with uncompressed size 
> 2 GiB used to decompress and then fail at physical EOF with a “Premature end 
of stream” exception instead of completing cleanly.</action>
       <!-- FIX deflate64 -->
       <action type="fix" dev="ggregory" due-to="KALI 834X, Gary 
Gregory">[Deflate64] Reject invalid literal/length and distance codes in 
Deflate64 decoder (#785).</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">[Deflate64] 
Deflate64CompressorInputStream now throws ArchiveException instead of 
IllegalArgumetException/IllegalStateException.</action>
       <!-- FIX lz77 -->
       <action type="fix" dev="ggregory" due-to="KALI 834X, Gary 
Gregory">[LZ77] Reject back-reference offset larger than the window in lz77 
decoder class AbstractLZ77CompressorInputStream (#797).</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">[LZ77] 
AbstractLZ77CompressorInputStream now throws ArchiveException instead of 
IllegalArgumetException/IllegalStateException.</action>
diff --git 
a/src/main/java/org/apache/commons/compress/compressors/deflate64/Deflate64CompressorInputStream.java
 
b/src/main/java/org/apache/commons/compress/compressors/deflate64/Deflate64CompressorInputStream.java
index a4bffc68b..cd06839dd 100644
--- 
a/src/main/java/org/apache/commons/compress/compressors/deflate64/Deflate64CompressorInputStream.java
+++ 
b/src/main/java/org/apache/commons/compress/compressors/deflate64/Deflate64CompressorInputStream.java
@@ -97,7 +97,7 @@ public int read() throws IOException {
             case 0:
                 continue;
             default:
-                throw new IllegalStateException("Invalid return value from 
read: " + r);
+                throw new CompressorException("Invalid return value from read: 
" + r);
             }
         }
     }

Reply via email to