Handle blackTable2 array access correctly.

This commit is contained in:
Kalervo Kujala 2011-10-17 22:24:19 +03:00
parent d39ea4dc54
commit 6688c3a1f5

2
pdf.js
View File

@ -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]];