1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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