1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #6372 from Snuffleupagus/issue-6360

Also check `maybeLength` when deciding if a stream is empty in `Parser_makeFilter` (issue 6360, bug 1191694)
This commit is contained in:
Yury Delendik 2015-08-20 17:43:11 -05:00
commit 23cb01c8af
3 changed files with 11 additions and 1 deletions

View file

@ -524,7 +524,7 @@ var Parser = (function ParserClosure() {
return stream;
},
makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
if (stream.dict.get('Length') === 0) {
if (stream.dict.get('Length') === 0 && !maybeLength) {
return new NullStream(stream);
}
try {