Not reading the dictionary tail of streams are not allowed #389
This commit is contained in:
parent
5f6f3991db
commit
c52e09082a
4
pdf.js
4
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();
|
||||
|
Loading…
Reference in New Issue
Block a user