Not reading the dictionary tail of streams are not allowed #389

This commit is contained in:
notmasteryet 2011-08-26 20:41:07 -05:00
parent 5f6f3991db
commit c52e09082a

4
pdf.js
View File

@ -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();