Skip to content
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

Ensure that TilingPatterns have valid (non-zero) /BBox arrays (issue 8330) #8441

Merged
merged 1 commit into from
Jun 10, 2017
Merged

Ensure that TilingPatterns have valid (non-zero) /BBox arrays (issue 8330) #8441

merged 1 commit into from
Jun 10, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 24, 2017

Fixes #8330.

Please note: This is a tentative patch, since I'm not entirely certain if it's the best solution; but it does work!

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux unittest

@Snuffleupagus
Copy link
Collaborator Author

Checking if the test "failures" in Chrome on Windows is intermittent.

/botio-windows test

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2017

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/efcb466db8d8c5f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2017

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/6bc3ee4e9d25bba/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2017

From: Bot.io (Linux m4)


Success

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

Total script time: 17.05 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2017

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/6bc3ee4e9d25bba/output.txt

Total script time: 29.47 mins

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

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

Copy link
Contributor

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

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

Looks good with change below.


// Ensure that the pattern has a non-zero width and height, to prevent errors
// in `pattern_helper.js` (fixes issue8330.pdf).
assert((bbox[2] - bbox[0]) !== 0 && (bbox[3] - bbox[1]) !== 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

(it's pre-existing practice but) let's change this to if..throw new Error. I'll will be opening issue to re-inspect assert usage (see #8506)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, I've updated the patch; thank you for the review!

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2017

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/4016fb84ebfa052/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2017

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/4016fb84ebfa052/output.txt

Total script time: 16.97 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2017

From: Bot.io (Windows)


Success

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

Total script time: 29.88 mins

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

@Snuffleupagus
Copy link
Collaborator Author

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/36c0d875c294f8b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/36c0d875c294f8b/output.txt

Total script time: 15.89 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/cb0dbeea75d44df/output.txt

Total script time: 28.17 mins

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

@Snuffleupagus Snuffleupagus merged commit f34d692 into mozilla:master Jun 10, 2017
@Snuffleupagus Snuffleupagus deleted the issue-8330 branch June 10, 2017 10:37
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Ensure that `TilingPattern`s have valid (non-zero) /BBox arrays (issue 8330)
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.

3 participants