1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Revert commit fc73e2e (PR 5005) for breaking certain PDF files

This commit is contained in:
Jonas Jenwald 2014-07-22 21:17:57 +02:00
parent 780f86b9c3
commit b950118681
2 changed files with 13 additions and 7 deletions

View file

@ -531,10 +531,12 @@ var FlateStream = (function FlateStreamClosure() {
this.eof = true;
}
} else {
var block = str.getBytes(blockLen);
buffer.set(block, bufferLength);
if (block.length < blockLen) {
this.eof = true;
for (var n = bufferLength; n < end; ++n) {
if ((b = str.getByte()) === -1) {
this.eof = true;
break;
}
buffer[n] = b;
}
}
return;