Skip to content

Commit

Permalink
Merge pull request mozilla#9460 from Snuffleupagus/issue-9458
Browse files Browse the repository at this point in the history
Use the correct stream position when reading `maxSizeOfInstructions` from the `maxp` table (issue 9458)
  • Loading branch information
Snuffleupagus authored Feb 8, 2018
2 parents fa4c2b5 + 495809b commit b61fd1f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,7 @@ var Font = (function FontClosure() {
}
font.pos += 4;
maxFunctionDefs = font.getUint16();
font.pos += 6;
font.pos += 4;
maxSizeOfInstructions = font.getUint16();
}

Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
!issue9105_reduced.pdf
!issue9262_reduced.pdf
!issue9291.pdf
!issue9458.pdf
!bad-PageLabels.pdf
!decodeACSuccessive.pdf
!filled-background.pdf
Expand Down
Binary file added test/pdfs/issue9458.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,13 @@
"link": false,
"type": "eq"
},
{ "id": "issue9458",
"file": "pdfs/issue9458.pdf",
"md5": "ee54358d8b2fdc75dc8da5220cf8e8da",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue5501",
"file": "pdfs/issue5501.pdf",
"md5": "55a60699728fc92f491a2d7d490474e4",
Expand Down

0 comments on commit b61fd1f

Please sign in to comment.