Use the correct stream position when reading maxSizeOfInstructions
from the maxp
table (issue 9458)
Please refer to the `maxp` table specification, found at https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6maxp.html. Fixes 9458.
This commit is contained in:
parent
43f1f96b10
commit
a18c65ae9f
@ -2351,7 +2351,7 @@ var Font = (function FontClosure() {
|
|||||||
}
|
}
|
||||||
font.pos += 4;
|
font.pos += 4;
|
||||||
maxFunctionDefs = font.getUint16();
|
maxFunctionDefs = font.getUint16();
|
||||||
font.pos += 6;
|
font.pos += 4;
|
||||||
maxSizeOfInstructions = font.getUint16();
|
maxSizeOfInstructions = font.getUint16();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -67,6 +67,7 @@
|
|||||||
!issue9105_reduced.pdf
|
!issue9105_reduced.pdf
|
||||||
!issue9262_reduced.pdf
|
!issue9262_reduced.pdf
|
||||||
!issue9291.pdf
|
!issue9291.pdf
|
||||||
|
!issue9458.pdf
|
||||||
!bad-PageLabels.pdf
|
!bad-PageLabels.pdf
|
||||||
!decodeACSuccessive.pdf
|
!decodeACSuccessive.pdf
|
||||||
!filled-background.pdf
|
!filled-background.pdf
|
||||||
|
515
test/pdfs/issue9458.pdf
Normal file
515
test/pdfs/issue9458.pdf
Normal file
File diff suppressed because one or more lines are too long
@ -712,6 +712,13 @@
|
|||||||
"link": false,
|
"link": false,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue9458",
|
||||||
|
"file": "pdfs/issue9458.pdf",
|
||||||
|
"md5": "ee54358d8b2fdc75dc8da5220cf8e8da",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue5501",
|
{ "id": "issue5501",
|
||||||
"file": "pdfs/issue5501.pdf",
|
"file": "pdfs/issue5501.pdf",
|
||||||
"md5": "55a60699728fc92f491a2d7d490474e4",
|
"md5": "55a60699728fc92f491a2d7d490474e4",
|
||||||
|
Loading…
Reference in New Issue
Block a user