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

Merge pull request #11523 from Snuffleupagus/issue-10880

Add a heuristic, in `src/core/jpg.js`, to handle JPEG images with a wildly incorrect SOF (Start of Frame) `scanLines` parameter (issue 10880)
This commit is contained in:
Tim van der Meij 2020-03-06 23:03:09 +01:00 committed by GitHub
commit 1a97c142b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 163 additions and 6 deletions

View file

@ -512,7 +512,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
this.xref,
resources,
this.pdfFunctionFactory
)
) &&
image.maybeValidDimensions
) {
// These JPEGs don't need any more processing so we can just send it.
return this.handler