Skip to content

Commit

Permalink
Merge pull request #18760 from calixteman/bug1919513
Browse files Browse the repository at this point in the history
Read a signed integer when using PUSHW in sanitizing a font (bug 1919513)
  • Loading branch information
calixteman authored Sep 19, 2024
2 parents 19151fe + 78dd354 commit 652e3e0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,7 @@ class Font {
} else {
for (j = 0; j < n; j++) {
b = data[i++];
stack.push((b << 8) | data[i++]);
stack.push(signedInt16(b, data[i++]));
}
}
} else if (op === 0x2b && !tooComplexToFollowFunctions) {
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -668,3 +668,4 @@
!issue18694.pdf
!issue18693.pdf
!bug1918115.pdf
!bug1919513.pdf
Binary file added test/pdfs/bug1919513.pdf
Binary file not shown.
8 changes: 8 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10482,5 +10482,13 @@
"rounds": 1,
"link": true,
"type": "eq"
},
{
"id": "bug1919513",
"file": "pdfs/bug1919513.pdf",
"md5": "83d1a7fab2c81e632910c334879e7334",
"rounds": 1,
"talos": false,
"type": "eq"
}
]

0 comments on commit 652e3e0

Please sign in to comment.