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

Issue 2574533002: Fix integer overflow in ProbeController. (Closed)

Created:
4 years ago by Sergey Ulanov
Modified:
4 years ago
Reviewers:
philipel, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix integer overflow in ProbeController. Previously ProbeController would overflow int when calculating min_bitrate_to_probe_further_bps and when probing bitrate is above 17 Mbps. The problem was introduced in https://codereview.webrtc.org/2504023002. Fixed ProbeController to use int64_t internally for bitrate calculations. BUG=6332 Committed: https://crrev.com/5bc3945f8f2c5922780f6e2c4840b34bb0739632 Cr-Commit-Position: refs/heads/master@{#15642}

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -46 lines) Patch
M webrtc/modules/congestion_controller/probe_controller.h View 1 2 chunks +10 lines, -11 lines 0 comments Download
M webrtc/modules/congestion_controller/probe_controller.cc View 1 2 10 chunks +38 lines, -33 lines 0 comments Download
M webrtc/modules/congestion_controller/probe_controller_unittest.cc View 1 2 2 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Sergey Ulanov
4 years ago (2016-12-12 21:35:00 UTC) #2
philipel
https://codereview.webrtc.org/2574533002/diff/1/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2574533002/diff/1/webrtc/modules/congestion_controller/probe_controller.cc#newcode98 webrtc/modules/congestion_controller/probe_controller.cc:98: /*probe_furter=*/false); In general, if you want to describe the ...
4 years ago (2016-12-13 14:26:27 UTC) #3
Sergey Ulanov
https://codereview.webrtc.org/2574533002/diff/1/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2574533002/diff/1/webrtc/modules/congestion_controller/probe_controller.cc#newcode98 webrtc/modules/congestion_controller/probe_controller.cc:98: /*probe_furter=*/false); On 2016/12/13 14:26:27, philipel wrote: > In general, ...
4 years ago (2016-12-13 19:38:09 UTC) #5
philipel
lgtm with comments. https://codereview.webrtc.org/2574533002/diff/40001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2574533002/diff/40001/webrtc/modules/congestion_controller/probe_controller.cc#newcode80 webrtc/modules/congestion_controller/probe_controller.cc:80: int old_max_bitrate_bps = max_bitrate_bps_; int64_t https://codereview.webrtc.org/2574533002/diff/40001/webrtc/modules/congestion_controller/probe_controller_unittest.cc ...
4 years ago (2016-12-14 09:33:44 UTC) #6
philipel
Oops, missed an int -> int64_t in my last set of comments. https://codereview.webrtc.org/2574533002/diff/40001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc ...
4 years ago (2016-12-14 09:43:10 UTC) #7
Sergey Ulanov
https://codereview.webrtc.org/2574533002/diff/40001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2574533002/diff/40001/webrtc/modules/congestion_controller/probe_controller.cc#newcode80 webrtc/modules/congestion_controller/probe_controller.cc:80: int old_max_bitrate_bps = max_bitrate_bps_; On 2016/12/14 09:33:44, philipel wrote: ...
4 years ago (2016-12-14 22:41:26 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.webrtc.org/2574533002/60001
4 years ago (2016-12-15 18:27:20 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/11483)
4 years ago (2016-12-15 18:30:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2574533002/60001
4 years ago (2016-12-15 18:37:34 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years ago (2016-12-15 18:42:13 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-15 18:42:24 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5bc3945f8f2c5922780f6e2c4840b34bb0739632
Cr-Commit-Position: refs/heads/master@{#15642}

Powered by Google App Engine
This is Rietveld 408576698