Ignoring glyphs without points
This commit is contained in:
parent
1ce8afc23c
commit
93076ced03
@ -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
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -21,6 +21,7 @@
|
||||
!devicen.pdf
|
||||
!cmykjpeg.pdf
|
||||
!issue840.pdf
|
||||
!issue3438.pdf
|
||||
!issue2074.pdf
|
||||
!scan-bad.pdf
|
||||
!pdfjsbad1586.pdf
|
||||
|
BIN
test/pdfs/issue3438.pdf
Normal file
BIN
test/pdfs/issue3438.pdf
Normal file
Binary file not shown.
@ -1288,6 +1288,12 @@
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue3438",
|
||||
"file": "pdfs/issue3438.pdf",
|
||||
"md5": "5aa3340b0920b65a377f697587668f89",
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "bug886717",
|
||||
"file": "pdfs/bug886717.pdf",
|
||||
"md5": "8ba614192797a1324765610231a1bc9d",
|
||||
|
Loading…
Reference in New Issue
Block a user