1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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:
Jonas Jenwald 2018-02-07 20:53:44 +01:00
parent 43f1f96b10
commit a18c65ae9f
4 changed files with 524 additions and 1 deletions

View file

@ -2351,7 +2351,7 @@ var Font = (function FontClosure() {
}
font.pos += 4;
maxFunctionDefs = font.getUint16();
font.pos += 6;
font.pos += 4;
maxSizeOfInstructions = font.getUint16();
}