From 0d229351f305aa6145a9519984c8454f3b2dd607 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 21 Jun 2013 17:35:52 -0500 Subject: [PATCH] Bug 874851: ignoring bad stream length --- src/parser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parser.js b/src/parser.js index a0f6c295e..72747e524 100644 --- a/src/parser.js +++ b/src/parser.js @@ -208,8 +208,9 @@ var Parser = (function ParserClosure() { stream.pos = pos + length; this.shift(); // '>>' this.shift(); // 'stream' - if (!isCmd(this.buf1, 'endstream')) - error('Missing endstream'); + if (!isCmd(this.buf1, 'endstream')) { + warn('Missing endstream'); + } this.shift(); stream = stream.makeSubStream(pos, length, dict);