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:
parent
780f86b9c3
commit
b950118681
2 changed files with 13 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue