This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-jbig2.git
The following commit(s) were added to refs/heads/master by this push:
new 4e40395 PDFBOX-6155: don't reset from SymbolDictionary
4e40395 is described below
commit 4e403954c046415ac213f575f32bbc19688885be
Author: Maruan Sahyoun <[email protected]>
AuthorDate: Sat Apr 18 22:26:43 2026 +0200
PDFBOX-6155: don't reset from SymbolDictionary
---
.../java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git
a/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
b/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
index 2963074..3803414 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
@@ -273,9 +273,6 @@ public class SymbolDictionary implements Dictionary
private void setRetainedCodingContexts(final SymbolDictionary sd)
{
- this.arithmeticDecoder = sd.arithmeticDecoder;
- this.isHuffmanEncoded = sd.isHuffmanEncoded;
- this.useRefinementAggregation = sd.useRefinementAggregation;
this.sdTemplate = sd.sdTemplate;
this.sdrTemplate = sd.sdrTemplate;
this.sdATX = sd.sdATX;
@@ -664,8 +661,7 @@ public class SymbolDictionary implements Dictionary
// 5) c) - Initialize arithmetic decoder for refinement bitmap
// Note that the same subInputStream is used for both symbol
dictionary decoding
- // and refinement bitmap decoding, so the arithmetic decoder must
be re-initialized here.
- // CXs and other parameters are retained, so only the arithmetic
decoder needs to be re-initialized.
+ // and refinement bitmap decoding.
arithmeticDecoder = new ArithmeticDecoder(subInputStream);
}
else