Skip to content

Tweak the heuristic, in src/core/jpg.js, that handles JPEG images with a wildly incorrect SOF (Start of Frame) scanLines parameter (issue 10989) #12063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

Fixes #10989

…ith a wildly incorrect SOF (Start of Frame) `scanLines` parameter (issue 10989)
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jul 6, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/9b7a71f4c4c7157/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 6, 2020

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/ef10ca9d2ad12af/output.txt

@@ -163,12 +163,16 @@ var JpegImage = (function JpegImageClosure() {
} else if (nextByte === /* EOI = */ 0xd9) {
if (parseDNLMarker) {
// NOTE: only 8-bit JPEG images are supported in this decoder.
const maybeScanLines = blockRow * 8;
const maybeScanLines = blockRow * (frame.precision === 8 ? 8 : 0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not completely related to the patch, but a better-safe-than-sorry sort of change when I had to touch related code anyway.

@pdfjsbot
Copy link

pdfjsbot commented Jul 6, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/9b7a71f4c4c7157/output.txt

Total script time: 26.72 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/9b7a71f4c4c7157/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jul 6, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/ef10ca9d2ad12af/output.txt

Total script time: 29.09 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/ef10ca9d2ad12af/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jul 8, 2020

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/9b8b269dec71bcd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 8, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/9b8b269dec71bcd/output.txt

Total script time: 3.35 mins

Published

@timvandermeij timvandermeij merged commit 7dabc5e into mozilla:master Jul 10, 2020
@timvandermeij
Copy link
Contributor

Nice find!

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/a5485e61f9993e0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 1

Live output at: http://54.215.176.217:8877/0176ec4f43d59cf/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/a5485e61f9993e0/output.txt

Total script time: 24.83 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/0176ec4f43d59cf/output.txt

Total script time: 27.81 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the issue-10989 branch July 11, 2020 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single page large format displays as a blank page or incorrectly
3 participants