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

Prevent errors in sanitizeTTProgram, during parsing of CALL functions, when encountering invalid functions stack deltas (bug 1473809) #9886

Merged
merged 1 commit into from
Jul 15, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

I was feeling bored; so this is a very quick, and somewhat naive, attempt at fixing the bug.

The breaking error, i.e. Error during font loading: invalid array length, was thrown when attempting to re-size the stack to a negative length when parsing the CALL functions.

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

…ns, when encountering invalid functions stack deltas (bug 1473809)

*I was feeling bored; so this is a very quick, and somewhat naive, attempt at fixing the bug.*

The breaking error, i.e. `Error during font loading: invalid array length`, was thrown when attempting to re-size the `stack` to a *negative* length when parsing the CALL functions.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1473809.
@Snuffleupagus Snuffleupagus changed the title Prevent errors in sanitizeTTProgram, during parsing of CALL functio…ns, when encountering invalid functions stack deltas (bug 1473809) Prevent errors in sanitizeTTProgram, during parsing of CALL functions, when encountering invalid functions stack deltas (bug 1473809) Jul 10, 2018
@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/17234c76acaf667/output.txt

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/17234c76acaf667/output.txt

Total script time: 0.55 mins

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/09d03a6fb945e98/output.txt

Total script time: 0.65 mins

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/37296492bb7720f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/4dc6c850f7ff323/output.txt

Total script time: 0.55 mins

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/37296492bb7720f/output.txt

Total script time: 0.55 mins

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/44c7092a0326ca3/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/44c7092a0326ca3/output.txt

Total script time: 24.68 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/5c5962cfcfe81eb/output.txt

Total script time: 37.83 mins

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 18.99 mins

Published

@timvandermeij
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@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/6492b1da987bbf3/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

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

Total script time: 22.09 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/6492b1da987bbf3/output.txt

Total script time: 60.00 mins

  • Lint: Passed

@timvandermeij
Copy link
Contributor

/botio-linux 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/18dce15f3a98dae/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/18dce15f3a98dae/output.txt

Total script time: 60.00 mins

  • Lint: Passed

@timvandermeij timvandermeij merged commit 61db85a into mozilla:master Jul 15, 2018
@timvandermeij
Copy link
Contributor

Thank you for fixing this! I'm opening a follow-up issue to track the failed makeref on the Linux bot.

@Snuffleupagus
Copy link
Collaborator Author

Thank you for fixing this!

Thanks for merging!

I'm opening a follow-up issue to track the failed makeref on the Linux bot.

Good idea; the Linux-only failures look like general slowness of the bot, since even something as simple as gulp lint took a couple of minutes. Note e.g. [14:33:40] Finished 'lint' after 2.6 min in the latest Linux logs, while that command should complete in less than 30 seconds.

@Snuffleupagus Snuffleupagus deleted the bug-1473809 branch July 15, 2018 15:33
@yurydelendik
Copy link
Contributor

/botio-linux makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/1700e9a66d01c73/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/1700e9a66d01c73/output.txt

Total script time: 0.10 mins

@Snuffleupagus Snuffleupagus restored the bug-1473809 branch July 27, 2018 22:56
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux 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/4f3ab9b7eab3eab/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/4f3ab9b7eab3eab/output.txt

Total script time: 18.21 mins

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

@Snuffleupagus Snuffleupagus deleted the bug-1473809 branch July 27, 2018 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants