Handle blackTable2 array access correctly.
This commit is contained in:
parent
d39ea4dc54
commit
6688c3a1f5
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -2098,7 +2098,7 @@ var CCITTFaxStream = (function ccittFaxStream() {
|
|||
if (i < end)
|
||||
code <<= end - i;
|
||||
if (code >= limit) {
|
||||
var p = table[code];
|
||||
var p = table[code - ((limit == -1) ? 0 : limit)];
|
||||
if (p[0] == i) {
|
||||
this.eatBits(i);
|
||||
return [true, p[1]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue