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

chore: cherry-pick 99c3f3bfd507 from chromium #34225

Merged
merged 2 commits into from May 16, 2022

Conversation

ppontes
Copy link
Member

@ppontes ppontes commented May 13, 2022

Only destroy successfully created compression session in VT encoder

This is a defensive change, since we don't have a repro on hand.
My guess is that VTCompressionSessionCreate() might fail to create a
compression session, but still write a value to compressionSessionOut.
It makes VTCompressionSessionInvalidate() access uninitialized memory.

That's why this CL makes sure that we only destroy a compression session
if VTCompressionSessionCreate() reports success.

Bug: 1312563
Change-Id: I468ce0e10bad251ca0b62b568607dbc5c32ba8bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3575680
Reviewed-by: Dale Curtis dalecurtis@chromium.org
Commit-Queue: Eugene Zemtsov eugene@chromium.org
Cr-Commit-Position: refs/heads/main@{#990654}

Notes: Backported fix for chromium:1312563.

@ppontes ppontes requested review from a team as code owners May 13, 2022 14:33
@ppontes ppontes added 17-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes labels May 13, 2022
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels May 13, 2022
@jkleinsc jkleinsc merged commit bd3e9aa into 17-x-y May 16, 2022
@jkleinsc jkleinsc deleted the cherry-pick/17-x-y/chromium/99c3f3bfd507 branch May 16, 2022 16:11
@release-clerk
Copy link

release-clerk bot commented May 16, 2022

Release Notes Persisted

Backported fix for chromium:1312563.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants