mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ignoring glyphs without points
This commit is contained in:
parent
1ce8afc23c
commit
93076ced03
4 changed files with 11 additions and 0 deletions
|
@ -3164,6 +3164,10 @@ var Font = (function FontClosure() {
|
|||
coordinatesLength += repeat * xyLength;
|
||||
}
|
||||
}
|
||||
// glyph without coordinates will be rejected
|
||||
if (coordinatesLength === 0) {
|
||||
return 0;
|
||||
}
|
||||
var glyphDataLength = j + coordinatesLength;
|
||||
if (glyphDataLength > glyf.length) {
|
||||
// not enough data for coordinates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue