From: sbarman Date: Thu, 9 Jun 2011 22:02:58 +0000 (-0700) Subject: fixed error with getBytes in flate stream X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0e8f323f0ac86c14e9d50082bdae623a37ec9260;p=pdf.js.git fixed error with getBytes in flate stream --- diff --git a/pdf.js b/pdf.js index cdc8b66..c6f9f06 100644 --- a/pdf.js +++ b/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;