From c03cf20d371e67ba6dfa222dca15abd552b52e57 Mon Sep 17 00:00:00 2001 From: fkaelberer Date: Fri, 1 Aug 2014 08:38:13 +0200 Subject: [PATCH] Fix JBIG2 decoding issue #5026 --- src/core/jbig2.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/jbig2.js b/src/core/jbig2.js index e4ae7c751..2fa7ef1ec 100755 --- a/src/core/jbig2.js +++ b/src/core/jbig2.js @@ -140,11 +140,12 @@ var Jbig2Image = (function Jbig2ImageClosure() { } ]; + // See 6.2.5.7 Decoding the bitmap. var ReusedContexts = [ - 0x1CD3, // '00111001101' (template) + '0011' (at), - 0x079A, // '001111001101' + '0', - 0x00E3, // '001110001' + '1', - 0x018B // '011000101' + '1' + 0x9B25, // 10011 0110010 0101 + 0x0795, // 0011 110010 101 + 0x00E5, // 001 11001 01 + 0x0195 // 011001 0101 ]; var RefinementReusedContexts = [