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

Issue 2590823004: Avoid float-cast-overflow in content::VideoCapturerSource::GetCurrentSupportedFormats (Closed)

Created:
4 years ago by emircan
Modified:
3 years, 12 months ago
Reviewers:
mcasas
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid float-cast-overflow in content::VideoCapturerSource::GetCurrentSupportedFormats This CL addresses the fuzz issue below by limiting the max fps given to canvas capture by Chrome defined media::limits::kMaxFramesPerSecond. Note that Chrome expects every video source to report GetCurrentSupportedFormats() within the expected fps range. This limit isn't related to the blink side. BUG=675309 Committed: https://crrev.com/5528e145e2e91990d2ee795549f0341bac6394a7 Cr-Commit-Position: refs/heads/master@{#440241}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M content/renderer/media/canvas_capture_handler.cc View 1 3 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
emircan
PTAL.
4 years ago (2016-12-20 22:32:08 UTC) #5
mcasas
lgtm % comment/question Consider also checking for not frame_rate < 0.0 ? https://codereview.chromium.org/2590823004/diff/1/content/renderer/media/canvas_capture_handler.cc File content/renderer/media/canvas_capture_handler.cc ...
4 years ago (2016-12-20 22:57:14 UTC) #6
emircan
framerate<0 is checked on blink level and specified by the spec. I added it here ...
4 years ago (2016-12-20 23:07:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2590823004/20001
3 years, 12 months ago (2016-12-21 22:16:43 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-21 22:25:21 UTC) #17
commit-bot: I haz the power
3 years, 12 months ago (2016-12-21 22:29:19 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5528e145e2e91990d2ee795549f0341bac6394a7
Cr-Commit-Position: refs/heads/master@{#440241}

Powered by Google App Engine
This is Rietveld 408576698