diff --git a/src/core/chunked_stream.js b/src/core/chunked_stream.js index 040151815..98e8d7216 100644 --- a/src/core/chunked_stream.js +++ b/src/core/chunked_stream.js @@ -187,6 +187,8 @@ var ChunkedStream = (function ChunkedStreamClosure() { }, makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) { + this.ensureRange(start, start + length); + function ChunkedStreamSubstream() {} ChunkedStreamSubstream.prototype = Object.create(this); ChunkedStreamSubstream.prototype.getMissingChunks = function() {