mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Stops objects indexing at the end
This commit is contained in:
parent
8fc1e669f0
commit
1f232ded90
5 changed files with 79 additions and 0 deletions
|
@ -758,6 +758,9 @@ var XRef = (function XRefClosure() {
|
|||
if (ch === 37) { // %-comment
|
||||
do {
|
||||
++position;
|
||||
if (position >= length) {
|
||||
break;
|
||||
}
|
||||
ch = buffer[position];
|
||||
} while (ch !== 13 && ch !== 10);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue