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

Fix mishandling of incomplete, inverted masks. #4933

Merged
merged 1 commit into from
Jun 13, 2014

Conversation

nnethercote
Copy link
Contributor

This fixes #4926. Sometimes image masks have less data than the height*width requires. createMask() was handling this correctly on normal masks, but when the mask was inverted it did the wrong thing.

@nnethercote nnethercote mentioned this pull request Jun 13, 2014
@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/4a5731e96c3b421/output.txt

} else {
data = new Uint8Array(computedLength);
data.set(imgArray);
for (var i = actualLength; i < computedLength; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

To fix the lint error, please move var i to the top of the function (placed among the other variables) and remove it from R284 too.

Edit: Also, since the patch needs to be updated anyway: please reduce the indention of the next line by two spaces.

@nnethercote
Copy link
Contributor Author

The updated patch fixes the lint error and the excess indentation.

@Snuffleupagus
Copy link
Collaborator

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

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

Total script time: 20.72 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

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

Total script time: 24.66 mins

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

@yurydelendik
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/86dbdcd643b6670/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/57d5dbac02c9b6e/output.txt

@yurydelendik
Copy link
Contributor

looks good, thanks

yurydelendik added a commit that referenced this pull request Jun 13, 2014
Fix mishandling of incomplete, inverted masks.
@yurydelendik yurydelendik merged commit 480e093 into mozilla:master Jun 13, 2014
@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/57d5dbac02c9b6e/output.txt

Total script time: 20.93 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/86dbdcd643b6670/output.txt

Total script time: 24.79 mins

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

@nnethercote nnethercote deleted the fix-4926-masking branch June 13, 2014 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Horizontal stripes
4 participants