mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
fixed error with getBytes in flate stream
This commit is contained in:
parent
78493db421
commit
0e8f323f0a
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -329,7 +329,7 @@ var FlateStream = (function() {
|
|||
getBytes: function(length) {
|
||||
var pos = this.bufferPos;
|
||||
|
||||
while (!this.eof && this.bufferLength < bufferPos + length)
|
||||
while (!this.eof && this.bufferLength < pos + length)
|
||||
this.readBlock();
|
||||
|
||||
var end = pos + length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue