mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Read a signed integer when using PUSHW in sanitizing a font (bug 1919513)
This commit is contained in:
parent
19151feb5f
commit
78dd35483c
4 changed files with 10 additions and 1 deletions
|
@ -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) {
|
||||
|
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -668,3 +668,4 @@
|
|||
!issue18694.pdf
|
||||
!issue18693.pdf
|
||||
!bug1918115.pdf
|
||||
!bug1919513.pdf
|
||||
|
|
BIN
test/pdfs/bug1919513.pdf
Executable file
BIN
test/pdfs/bug1919513.pdf
Executable file
Binary file not shown.
|
@ -10482,5 +10482,13 @@
|
|||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "bug1919513",
|
||||
"file": "pdfs/bug1919513.pdf",
|
||||
"md5": "83d1a7fab2c81e632910c334879e7334",
|
||||
"rounds": 1,
|
||||
"talos": false,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue