Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Issue 624633002: Fix potential use-after-free bug in VideoImageGenerator::onGetYUV8Planes. (Closed)

Created:
6 years, 2 months ago by dshwang
Modified:
6 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix potential use-after-free bug in VideoImageGenerator::onGetYUV8Planes. onGetYUV8Planes() exposes internal data of a VideoFrame and then delete the VideoFrame. VideoImageGenerator must keep the VideoFrame until exposed data is used. BUG=91208 Committed: https://crrev.com/c4d8a6fbf8ac266cc26ab7b5bf45c760456fec73 Cr-Commit-Position: refs/heads/master@{#299144}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix trybot failure #

Patch Set 3 : rebase to ToT and rollback to patch set 1 #

Patch Set 4 : give up removing |generator_| #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M media/filters/skcanvas_video_renderer.cc View 1 2 3 4 chunks +10 lines, -5 lines 1 comment Download

Messages

Total messages: 18 (5 generated)
dshwang
Could you review? Before I rebase https://codereview.chromium.org/445013002/ to ToT, I wanna remove generator_ member variable.
6 years, 2 months ago (2014-10-02 18:21:43 UTC) #2
dshwang
This CL is follow-up CL of rileya's https://codereview.chromium.org/531353002 https://codereview.chromium.org/569313003 https://codereview.chromium.org/624633002/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (left): https://codereview.chromium.org/624633002/diff/1/media/filters/skcanvas_video_renderer.cc#oldcode278 media/filters/skcanvas_video_renderer.cc:278: ...
6 years, 2 months ago (2014-10-02 18:23:52 UTC) #3
rileya (GONE FROM CHROMIUM)
Sorry for the delay, this got lost in my inbox! lgtm. Those trybots look a ...
6 years, 2 months ago (2014-10-07 17:55:51 UTC) #5
dshwang
On 2014/10/07 17:55:51, rileya wrote: > Sorry for the delay, this got lost in my ...
6 years, 2 months ago (2014-10-09 19:59:57 UTC) #6
scherkus (not reviewing)
lgtm
6 years, 2 months ago (2014-10-09 20:01:32 UTC) #7
dshwang
Thank you for review. I rebase this CL to ToT after https://codereview.chromium.org/619343003/ https://codereview.chromium.org/624633002/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc ...
6 years, 2 months ago (2014-10-10 14:13:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/624633002/140001
6 years, 2 months ago (2014-10-10 14:15:27 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/67184)
6 years, 2 months ago (2014-10-10 15:13:22 UTC) #12
dshwang
Give up removing |generator_| member because |last_frame_| will generate pixel again. https://codereview.chromium.org/624633002/diff/450001/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): ...
6 years, 2 months ago (2014-10-10 16:50:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/624633002/450001
6 years, 2 months ago (2014-10-10 16:51:31 UTC) #15
dshwang
FYI onGetYUV8Planes() can be covered by following tests: WebRtcGetUserMediaBrowserTest.TwoGetUserMediaAndVerifyFrameRate WebRtcGetUserMediaBrowserTest.TwoGetUserMediaWithEqualConstraints run in local machine > ...
6 years, 2 months ago (2014-10-10 16:56:35 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:450001)
6 years, 2 months ago (2014-10-10 18:28:56 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 18:29:42 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c4d8a6fbf8ac266cc26ab7b5bf45c760456fec73
Cr-Commit-Position: refs/heads/master@{#299144}

Powered by Google App Engine
This is Rietveld 408576698