8000 chore: cherry-pick 6584528aeb0f0 from webrtc and 36e370cf4db9a from chromium by ppontes · Pull Request #31359 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: cherry-pick 6584528aeb0f0 from webrtc and 36e370cf4db9a from chromium #31359

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

Conversation

ppontes
Copy link
Member
@ppontes ppontes commented Oct 8, 2021

[Merge to 94] Add Direction indicator to TransformableFrames

Currently the implementation of FrameTransformers uses distinct,
incompatible types for recevied vs about-to-be-sent frames. This adds a
flag in the interface so we can at least check that we are being given
the correct type. crbug.com/1250638 tracks removing the need for this.

Chrome will be updated after this to check the direction flag and provide
a javascript error if the wrong type of frame is written into the
encoded insertable streams writable stream, rather than crashing.

(cherry picked from commit 8fb41a39e1a2d151d1c00c409630dcee80adeb76)

Bug: chromium:1247260
Change-Id: I9cbb66962ea0718ed47c5e5dba19a8ff9635b0b1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/232301
Reviewed-by: Harald Alvestrand hta@webrtc.org
Commit-Queue: Tony Herre toprice@chromium.org
Cr-Original-Commit-Position: refs/heads/main@{#35100}
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/233943
Commit-Queue: Harald Alvestrand hta@webrtc.org
Cr-Commit-Position: refs/branch-heads/4606@{#4}
Cr-Branched-From: 8b18304e66524060eca390f143033ba51322b3a2-refs/heads/master@{#34737}

===============================

Check direction of RTCEncodedFrames

Add a check to RTCEncodedVideoUnderlyingSink of the direction of the
underlying webrtc frame, to make sure a web app doesn't take a received
encoded frame and pass it into a sender insertable stream, which is as
yet unsupported in WebRTC.

Bug: 1247260
Change-Id: I9ed5bd8b2bd5e5ee461f3b553f8a91f6cc2e9ed7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3190473
Commit-Queue: Tony Herre toprice@chromium.org
Reviewed-by: Harald Alvestrand hta@chromium.org
Cr-Commit-Position: refs/heads/main@{#927323}

Release Notes

Notes: Security: backported fix for CVE-2021-37979.

@ppontes ppontes added security 🔒 semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking 13-x-y labels Oct 8, 2021
@ppontes ppontes requested a review from a team as a code owner October 8, 2021 23:23
@deepak1556
Copy link
Member

Failing tests are unrelated, merging.

@deepak1556 deepak1556 merged commit 1caf4e6 into 13-x-y Oct 10, 2021
@deepak1556 deepak1556 deleted the cherry-pick/13-x-y/webrtc/6584528aeb0f0/chromium/36e370cf4db9a branch October 10, 2021 12:42
@release-clerk
Copy link
release-clerk bot commented Oct 10, 2021

Release Notes Persisted

Security: backported fix for CVE-2021-37979.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
13-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.

3 participants
0