Use the correct startPos when repeating the search for 'endobj' operators in XRef.indexObjects (PR 9288 follow-up)

This commit is contained in:
Jonas Jenwald 2018-06-19 10:00:14 +02:00
parent 6bbcafcd26
commit 30ad62a86a

View File

@ -1208,7 +1208,7 @@ var XRef = (function XRefClosure() {
break; break;
} }
} }
startPos += contentLength; startPos = endPos;
} }
let content = buffer.subarray(position, position + contentLength); let content = buffer.subarray(position, position + contentLength);