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 use-after-free on Android. #95

Merged
merged 3 commits into from Jul 30, 2014
Merged

Fix use-after-free on Android. #95

merged 3 commits into from Jul 30, 2014

Conversation

@mbrubeck
Copy link
Contributor

mbrubeck commented Jul 30, 2014

Fixes servo/servo#2916 (broken rendering on Android), which happened because the bitmap pointer outlived the Vec that it pointed to.

mbrubeck added 2 commits Jul 30, 2014
Fixes servo/servo#2916 (broken rendering on Android), which happened because
the `bitmap` pointer outlived the Vec<u8> that it pointed to.
@mbrubeck
Copy link
Contributor Author

mbrubeck commented Jul 30, 2014

As requested by @Ms2ger, changed NativeSurface::upload to take &mut self, to reduce the abuse of unsafe. This requires a change to the caller, servo/servo#2963.

@metajack

This comment has been minimized.

Copy link

metajack commented on 6f3053a Jul 30, 2014

r+

metajack added a commit that referenced this pull request Jul 30, 2014
Fix use-after-free on Android.
@metajack metajack merged commit f5f5a8b into servo:master Jul 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.