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

Issue 1138483002: ppapi: fix crash/infinite loop in VideoEncoder (Closed)

Created:
5 years, 7 months ago by llandwerlin-old
Modified:
5 years, 7 months ago
Reviewers:
bbudge
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ppapi: fix crash/infinite loop in VideoEncoder Depending on the libc used with your NaCl plugins, if the VideoEncoder proxy receives a EncodeReply message after it has been closed, the plugin will crash (newlib) or enter an infinite loop (glibc) because it tries to remove the end() iterator from a std::map. BUG=455409 TEST=run ppapi/examples/video_encode multiple times and verify the test keeps recording new videos Committed: https://crrev.com/86bd0448bb11826977519f852522267e403daeb0 Cr-Commit-Position: refs/heads/master@{#328997}

Patch Set 1 #

Patch Set 2 : Check callbacks first thing #

Patch Set 3 : Fix compilation #

Total comments: 1

Patch Set 4 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M ppapi/proxy/video_encoder_resource.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M ppapi/proxy/video_encoder_resource_unittest.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
llandwerlin-old
Hi Bill, I just run into a bug in the video encoder. Please review this ...
5 years, 7 months ago (2015-05-08 14:10:17 UTC) #1
llandwerlin-old
Hi Bill, I just run into a bug in the video encoder. Please review this ...
5 years, 7 months ago (2015-05-08 14:10:45 UTC) #3
llandwerlin-old
I'm wondering whether I should prevent the renderer to emit any message after a Close() ...
5 years, 7 months ago (2015-05-08 14:30:13 UTC) #4
bbudge
On 2015/05/08 14:30:13, llandwerlin wrote: > I'm wondering whether I should prevent the renderer to ...
5 years, 7 months ago (2015-05-08 17:25:04 UTC) #5
bbudge
https://codereview.chromium.org/1138483002/diff/40001/ppapi/proxy/video_encoder_resource.cc File ppapi/proxy/video_encoder_resource.cc (right): https://codereview.chromium.org/1138483002/diff/40001/ppapi/proxy/video_encoder_resource.cc#newcode364 ppapi/proxy/video_encoder_resource.cc:364: if (encode_callbacks_.empty()) We should comment on how this can ...
5 years, 7 months ago (2015-05-08 17:25:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138483002/60001
5 years, 7 months ago (2015-05-08 17:36:38 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-08 18:51:00 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 18:51:55 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/86bd0448bb11826977519f852522267e403daeb0
Cr-Commit-Position: refs/heads/master@{#328997}

Powered by Google App Engine
This is Rietveld 408576698