Bug 874851: ignoring bad stream length
This commit is contained in:
parent
df6fd387df
commit
0d229351f3
@ -208,8 +208,9 @@ var Parser = (function ParserClosure() {
|
|||||||
stream.pos = pos + length;
|
stream.pos = pos + length;
|
||||||
this.shift(); // '>>'
|
this.shift(); // '>>'
|
||||||
this.shift(); // 'stream'
|
this.shift(); // 'stream'
|
||||||
if (!isCmd(this.buf1, 'endstream'))
|
if (!isCmd(this.buf1, 'endstream')) {
|
||||||
error('Missing endstream');
|
warn('Missing endstream');
|
||||||
|
}
|
||||||
this.shift();
|
this.shift();
|
||||||
|
|
||||||
stream = stream.makeSubStream(pos, length, dict);
|
stream = stream.makeSubStream(pos, length, dict);
|
||||||
|
Loading…
Reference in New Issue
Block a user