[poppler] poppler/JBIG2Stream.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Dec 19 16:58:39 UTC 2020


 poppler/JBIG2Stream.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6ec2556be99a908e4be7f775bafdb8e3b4cbd886
Author: Oliver Sander <oliver.sander at tu-dresden.de>
Date:   Sat Dec 19 09:55:08 2020 +0100

    JBIG2Reader: Fix binary constant
    
    When comparing the file JBIG2Reader.cc with what is in xpdf-4.02,
    I noticed that a particular constant used in the method
    readGenericBitmap differs in poppler and xpdf.  I have no idea
    what that constant is good for, but in a comment both poppler
    and xpdf give the binary representation of that constant.
    That binary number is identical in poppler and xpdf, and it
    matches the value in xpdf, but is off-by-one in poppler.
    This leads me to believe that the value in poppler wrong,
    possibly a typo.

diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 1e19198a..64dac1fe 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -3037,7 +3037,7 @@ JBIG2Bitmap *JBIG2Stream::readGenericBitmap(bool mmr, int w, int h, int templ, b
                 ltpCX = 0x0e3; // 001 1100 01 1
                 break;
             case 3:
-                ltpCX = 0x18a; // 01100 0101 1
+                ltpCX = 0x18b; // 01100 0101 1
                 break;
             }
         }


More information about the poppler mailing list