Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix use-after-free. #27053

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Fix use-after-free. #27053

merged 1 commit into from
Jun 29, 2021

Conversation

chandarrengoog
Copy link
Contributor

Switch from fml::NonOwnedMapping to fml::DataMapping.

All other uses of fml::NonOwnedMapping are not in PlatformView and do not access data after references are out of scope.

This fixes fxbug.dev/77924.

CC: @naudzghebre

Switch from fml::NonOwnedMapping to fml::DataMapping.

All other uses of fml::NonOwnedMapping are not in PlatformView and do not access data after references are out of scope.

This fixes fxbug.dev/77924.
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@chandarrengoog chandarrengoog merged commit e8339ed into flutter:master Jun 29, 2021
@chandarrengoog chandarrengoog deleted the free branch June 29, 2021 23:42
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2021
bdero pushed a commit to flutter/flutter that referenced this pull request Jun 30, 2021
* 36a247f Temporarily opt out of reduced shaders variants till roll issues are resolved. (flutter/engine#27048)

* b06ff83 [web] Render RTL text correctly (flutter/engine#26811)

* 3283caf --sound-null-safety instead of enable-experiment where possible (flutter/engine#26999)

* e10490d Roll Fuchsia Linux SDK from qq5J5tHIA... to eMHAbJpmO... (flutter/engine#27049)

* 15ed6a0 Removes the licence sheck from cirrus (flutter/engine#27051)

* 6d8a01a Roll Skia from 62ce2488f744 to c6804edbaefc (4 revisions) (flutter/engine#27050)

* e8339ed Fix use-after-free. (flutter/engine#27053)

* ecd4a14 Roll Dart SDK from 5103185fdff6 to 9d7c40ba84c4 (1 revision) (flutter/engine#27054)

* 2e86f4b Roll Skia from c6804edbaefc to 55b401ed9e6c (1 revision) (flutter/engine#27055)

* 6136cbd Give FlutterView a view ID (flutter/engine#27052)

* 05fe2e2 Revert "--sound-null-safety instead of enable-experiment where possible (#26999)" (flutter/engine#27059)

* c633b2a Roll Dart SDK from 9d7c40ba84c4 to d01a840fa25b (1 revision) (flutter/engine#27058)
moffatman pushed a commit to moffatman/engine that referenced this pull request Aug 5, 2021
Switch from `fml::NonOwnedMapping` to `fml::DataMapping`.

All other uses of `fml::NonOwnedMapping` are not in `PlatformView` and do not access data after references are out of scope.

This fixes https://fxbug.dev/77924.
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
Switch from `fml::NonOwnedMapping` to `fml::DataMapping`.

All other uses of `fml::NonOwnedMapping` are not in `PlatformView` and do not access data after references are out of scope.

This fixes https://fxbug.dev/77924.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants