Handle blackTable2 array access correctly.
This commit is contained in:
parent
d39ea4dc54
commit
6688c3a1f5
2
pdf.js
2
pdf.js
@ -2098,7 +2098,7 @@ var CCITTFaxStream = (function ccittFaxStream() {
|
|||||||
if (i < end)
|
if (i < end)
|
||||||
code <<= end - i;
|
code <<= end - i;
|
||||||
if (code >= limit) {
|
if (code >= limit) {
|
||||||
var p = table[code];
|
var p = table[code - ((limit == -1) ? 0 : limit)];
|
||||||
if (p[0] == i) {
|
if (p[0] == i) {
|
||||||
this.eatBits(i);
|
this.eatBits(i);
|
||||||
return [true, p[1]];
|
return [true, p[1]];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user