[OTS] Remove cntrmask instruction with no stem in charstring (bug 1529502)
This commit is contained in:
parent
6d8810b55c
commit
78e6020a6e
@ -546,6 +546,13 @@ class CFFParser {
|
||||
stackSize++;
|
||||
} else if (value === 19 || value === 20) {
|
||||
state.hints += stackSize >> 1;
|
||||
if (state.hints === 0) {
|
||||
// Not a valid value (see bug 1529502): just remove it.
|
||||
data.copyWithin(j - 1, j, -1);
|
||||
j -= 1;
|
||||
length -= 1;
|
||||
continue;
|
||||
}
|
||||
// skipping right amount of hints flag data
|
||||
j += (state.hints + 7) >> 3;
|
||||
stackSize %= 2;
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -595,3 +595,4 @@
|
||||
!bug1825002.pdf
|
||||
!issue14755.pdf
|
||||
!issue16473.pdf
|
||||
!bug1529502.pdf
|
||||
|
BIN
test/pdfs/bug1529502.pdf
Normal file
BIN
test/pdfs/bug1529502.pdf
Normal file
Binary file not shown.
@ -7676,5 +7676,12 @@
|
||||
"link": true,
|
||||
"forms": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "bug1529502",
|
||||
"file": "pdfs/bug1529502.pdf",
|
||||
"md5": "4830e765a3d6cb64d39b84de11178f6e",
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user