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:
parent
5f6f3991db
commit
c52e09082a
1 changed files with 3 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue