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

Ignore reserved commands when parsing operands in CFFParser_parseDict, instead of just rejecting the entire font (bug 1308536) #7698

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

According to the CFF specification, see http://partners.adobe.com/public/developer/en/font/5176.CFF.pdf#page=11, certain commands are currently reserved.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1308536.

@brendandahl
Copy link
Contributor

Could we do a unit test for this instead?

…t`, instead of just rejecting the entire font (bug 1308536)

According to the CFF specification, see http://partners.adobe.com/public/developer/en/font/5176.CFF.pdf#page=11, certain commands are currently reserved.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1308536.
@Snuffleupagus
Copy link
Collaborator Author

Could we do a unit test for this instead?

I've tried to (very quickly) put together a simple unit-test for this, but considering that its scope is perhaps a bit limited, I still want to keep the reference test as well to ensure proper test coverage here.

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/3eced6a5f9a7163/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/bbc1bf454770f72/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/bbc1bf454770f72/output.txt

Total script time: 26.25 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/3eced6a5f9a7163/output.txt

Total script time: 38.09 mins

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

@Snuffleupagus
Copy link
Collaborator Author

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/a39e4ca1bc82fa4/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/b098264663ec995/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/a39e4ca1bc82fa4/output.txt

Total script time: 25.82 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Nov 3, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/b098264663ec995/output.txt

Total script time: 37.69 mins

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

@Snuffleupagus
Copy link
Collaborator Author

Landing with r=bdahl on IRC.

@Snuffleupagus Snuffleupagus merged commit b4100ba into mozilla:master Nov 3, 2016
@Snuffleupagus Snuffleupagus deleted the bug-1308536 branch November 3, 2016 22:56
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Ignore reserved commands when parsing operands in `CFFParser_parseDict`, instead of just rejecting the entire font (bug 1308536)
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