Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JBIG2 decoding issue #5026 #5110

Merged
merged 1 commit into from
Aug 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/core/jbig2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down