This repository was archived by the owner on Jun 8, 2020. It is now read-only.
Repository navigation
Make create_source_surface_from_data fallible. - #201
Merged
bors-servo merged 1 commit intoSep 30, 2015
Merged
Conversation
Some Azure backends will return a null source surface if the size is zero, which was causing a crash. This patch forces callers to handle this case by returning an option.
Contributor
|
@bors-servo r+ |
|
📌 Commit e6eff36 has been approved by |
bors-servo
pushed a commit
that referenced
this pull request
Sep 30, 2015
…a, r=mbrubeck Make `create_source_surface_from_data` fallible. Some Azure backends will return a null source surface if the size is zero, which was causing a crash. This patch forces callers to handle this case by returning an option. r? @mbrubeck <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-azure/201) <!-- Reviewable:end -->
pcwalton
added a commit
to pcwalton/servo
that referenced
this pull request
Sep 30, 2015
incorporate the fix for zero-sized shmem on Mac. Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes servo#7422.
|
☀️ Test successful - travis |
|
☔ The latest upstream changes (presumably #201) made this pull request unmergeable. Please resolve the merge conflicts. |
pcwalton
added a commit
to pcwalton/servo
that referenced
this pull request
Oct 1, 2015
incorporate the fix for zero-sized shmem on Mac. Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes servo#7422.
bors-servo
pushed a commit
to servo/servo
that referenced
this pull request
Oct 1, 2015
Handle zero-sized source surfaces properly, and upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac. Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422. r? @mbrubeck (don't r+ until the upstream dependencies have landed) cc @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7802) <!-- Reviewable:end -->
jrmuizel
pushed a commit
to jrmuizel/gecko-cinnabar
that referenced
this pull request
Jun 12, 2017
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422. r? @mbrubeck (don't r+ until the upstream dependencies have landed) cc @jdm Source-Repo: https://github.com/servo/servo Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this pull request
Sep 30, 2019
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422. r? mbrubeck (don't r+ until the upstream dependencies have landed) cc jdm Source-Repo: https://github.com/servo/servo Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa UltraBlame original commit: d2e5c6f463146d88bb7e7b196cbf42161192c895
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this pull request
Oct 1, 2019
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422. r? mbrubeck (don't r+ until the upstream dependencies have landed) cc jdm Source-Repo: https://github.com/servo/servo Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa UltraBlame original commit: d2e5c6f463146d88bb7e7b196cbf42161192c895
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this pull request
Oct 1, 2019
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422. r? mbrubeck (don't r+ until the upstream dependencies have landed) cc jdm Source-Repo: https://github.com/servo/servo Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa UltraBlame original commit: d2e5c6f463146d88bb7e7b196cbf42161192c895
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some Azure backends will return a null source surface if the size is
zero, which was causing a crash. This patch forces callers to handle
this case by returning an option.
r? @mbrubeck