1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 07:38:07 +02:00

Attempt to find the next valid marker when encountering invalid image data in JpegImage.parse (issue 9425)

In the JPEG images in the referenced PDF file, the DHT (Define Huffman Tables) segments contain more data than expected based on the length parameter.

Fixes 9425.
This commit is contained in:
Jonas Jenwald 2018-02-01 10:35:38 +01:00
parent 29d77dedad
commit f4a95de694
3 changed files with 21 additions and 5 deletions

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/1682471/Test.pdf

View file

@ -860,6 +860,14 @@
"lastPage": 1,
"type": "eq"
},
{ "id": "issue9425",
"file": "pdfs/issue9425.pdf",
"md5": "cb5e99c9ada308304ca2dfcb7f72e3a0",
"rounds": 1,
"link": true,
"lastPage": 1,
"type": "eq"
},
{ "id": "txt2pdf",
"file": "pdfs/txt2pdf.pdf",
"md5": "02cefa0f5e8d96313bb05163b2f88c8c",