mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Follow JMPR op only if outside of FDEF and IF
This commit is contained in:
parent
c3ed71c9c5
commit
8b6aeee35c
1 changed files with 5 additions and 3 deletions
|
@ -3675,9 +3675,11 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
--ifLevel;
|
||||
} else if (op === 0x1C) { // JMPR
|
||||
var offset = stack[stack.length - 1];
|
||||
// only jumping forward to prevent infinite loop
|
||||
if (offset > 0) { i += offset - 1; }
|
||||
if (!inFDEF && !inELSE) {
|
||||
var offset = stack[stack.length - 1];
|
||||
// only jumping forward to prevent infinite loop
|
||||
if (offset > 0) { i += offset - 1; }
|
||||
}
|
||||
}
|
||||
// Adjusting stack not extactly, but just enough to get function id
|
||||
if (!inFDEF && !inELSE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue