From: notmasteryet Date: Sat, 27 Aug 2011 01:41:07 +0000 (-0500) Subject: Not reading the dictionary tail of streams are not allowed #389 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c52e09082a15c5d93aa157dad887ec6aaade67fe;p=pdf.js.git Not reading the dictionary tail of streams are not allowed #389 --- diff --git a/pdf.js b/pdf.js index 12aa9ca..52fd0ff 100644 --- a/pdf.js +++ b/pdf.js @@ -2714,7 +2714,9 @@ var Parser = (function() { // stream objects are not allowed inside content streams or // object streams - if (this.allowStreams && IsCmd(this.buf2, 'stream')) { + if (IsCmd(this.buf2, 'stream')) { + if (!this.allowStreams) + return dict; return this.makeStream(dict, cipherTransform); } else { this.shift();