chore: cherry-pick a0a48e0132bc from chromium #22983
Merged
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.
MojoVideoEncodeAcceleratorService: handle potential later Initialize()
This CL fixes a potential Initialize()-after-Initialize() of the said
service, as described in the bug, following the suggestion in #c11.
Bug: 1056222
Change-Id: Idd951d3f0bee62b94382ffe80e4e6b3cef33e6d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090031
Commit-Queue: Miguel Casas mcasas@chromium.org
Commit-Queue: Chrome Cunningham chcunningham@chromium.org
Auto-Submit: Miguel Casas mcasas@chromium.org
Reviewed-by: danakj danakj@chromium.org
Reviewed-by: Chrome Cunningham chcunningham@chromium.org
Cr-Commit-Position: refs/heads/master@{#747376}
Notes: Security: backport fix for use after free in VideoEncodeAccelerator.