Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.1.1
-
Fix Version/s: 4.1.3
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
-
ICEsoft Forum Reference:
Description
A user has pointed out a regression in the jbig2 support. I've looked into this issue an little closer and the claim is valid. An error check was added for empty JBIG2Global values in the Stream class which is causing the regression. The Hashtable processing block in the jbig2Decode method should instead read:
Hashtable decodeparms = library.getDictionary(entries, "DecodeParms");
if (decodeparms != null) {
Stream globalsStream = (Stream) library.getObject(decodeparms, "JBIG2Globals");
if (globalsStream != null){
byte[] globals = globalsStream.getDecodedStreamBytes();
if (globals != null && globals.length > 0) {
decoder.setGlobalData(globals);
globals = null;
}
}
}
Hashtable decodeparms = library.getDictionary(entries, "DecodeParms");
if (decodeparms != null) {
Stream globalsStream = (Stream) library.getObject(decodeparms, "JBIG2Globals");
if (globalsStream != null){
byte[] globals = globalsStream.getDecodedStreamBytes();
if (globals != null && globals.length > 0) {
decoder.setGlobalData(globals);
globals = null;
}
}
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Checked in patch to fix jbig 2 decoding error when no decode parameters are encountered.