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

Issue 2036613002: net::WindowedFilterTest: Add explicit overflow checks (Closed)

Created:
4 years, 6 months ago by bcf
Modified:
4 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ramant (doing other things)
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

net::WindowedFilterTest: Add explicit overflow checks Aggressive inlining causes -Wstrict-overflow to be triggered. BUG=616957 BUG=internal b/29059135 Committed: https://crrev.com/d66635d239b6f91dcb7e11160a0bee7d99bb2e92 Cr-Commit-Position: refs/heads/master@{#398092}

Patch Set 1 #

Patch Set 2 : Add explicit overflow checks to test #

Total comments: 4

Patch Set 3 : Remove QuicTime::Delta::Max() #

Total comments: 2

Patch Set 4 : Fix overflow check #

Patch Set 5 : Fix the correct overflow check. #

Patch Set 6 : Add comments for ASSERTS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M net/quic/congestion_control/windowed_filter_test.cc View 1 2 3 4 5 4 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (15 generated)
bcf
Thoughts on this? Using the compiler armv7a-cros-linux-gnueabi-g++.real.elf (4.9.2_cos_gg_21201ea_4.9.2-r116) 4.9.x-google 20150123 (prerelease) We can't build windowed_filter_test.cc: ...
4 years, 6 months ago (2016-06-02 01:34:41 UTC) #3
Ryan Hamilton
On 2016/06/02 01:34:41, bcf wrote: > Thoughts on this? > > Using the compiler > ...
4 years, 6 months ago (2016-06-02 03:20:47 UTC) #5
bcf
> I don't understand this error, do you? I don't see any subtraction on that ...
4 years, 6 months ago (2016-06-02 04:01:08 UTC) #6
bcf
On 2016/06/02 04:01:08, bcf wrote: > The error is caused in the call to windowed_max_bw_.Update. ...
4 years, 6 months ago (2016-06-02 04:06:59 UTC) #7
Jana
On 2016/06/02 04:06:59, bcf wrote: > On 2016/06/02 04:01:08, bcf wrote: > > The error ...
4 years, 6 months ago (2016-06-02 21:29:14 UTC) #8
bcf
On 2016/06/02 21:29:14, Jana wrote: > On 2016/06/02 04:06:59, bcf wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 23:35:12 UTC) #9
Jana
https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc File net/quic/congestion_control/windowed_filter_test.cc (right): https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc#newcode300 net/quic/congestion_control/windowed_filter_test.cc:300: QuicTime::Delta::FromMilliseconds(5).ToMicroseconds())); Why is this necessary? Does the compiler complain ...
4 years, 6 months ago (2016-06-02 23:39:37 UTC) #11
bcf
https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc File net/quic/congestion_control/windowed_filter_test.cc (right): https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc#newcode300 net/quic/congestion_control/windowed_filter_test.cc:300: QuicTime::Delta::FromMilliseconds(5).ToMicroseconds())); On 2016/06/02 23:39:37, Jana wrote: > Why is ...
4 years, 6 months ago (2016-06-02 23:42:47 UTC) #12
Jana
Thanks! Suggestion below https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc File net/quic/congestion_control/windowed_filter_test.cc (right): https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc#newcode300 net/quic/congestion_control/windowed_filter_test.cc:300: QuicTime::Delta::FromMilliseconds(5).ToMicroseconds())); On 2016/06/02 23:42:47, bcf wrote: ...
4 years, 6 months ago (2016-06-03 00:14:26 UTC) #13
bcf
https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc File net/quic/congestion_control/windowed_filter_test.cc (right): https://codereview.chromium.org/2036613002/diff/20001/net/quic/congestion_control/windowed_filter_test.cc#newcode300 net/quic/congestion_control/windowed_filter_test.cc:300: QuicTime::Delta::FromMilliseconds(5).ToMicroseconds())); On 2016/06/03 00:14:26, Jana wrote: > On 2016/06/02 ...
4 years, 6 months ago (2016-06-03 00:25:38 UTC) #14
Jana
lgtm Thanks much for fixing this! I'm comfortable with just pacifying the compiler, since we ...
4 years, 6 months ago (2016-06-03 00:29:11 UTC) #15
Ryan Hamilton
lgtm
4 years, 6 months ago (2016-06-03 16:27:45 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036613002/40001
4 years, 6 months ago (2016-06-03 18:15:23 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/76315)
4 years, 6 months ago (2016-06-03 18:50:11 UTC) #21
bcf
https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc File net/quic/congestion_control/windowed_filter_test.cc (right): https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc#newcode297 net/quic/congestion_control/windowed_filter_test.cc:297: ASSERT_LT(windowed_min_rtt_.GetThirdBest(), rtt_sample); On 2016/06/03 18:50:11, commit-bot: I haz the ...
4 years, 6 months ago (2016-06-03 18:57:49 UTC) #22
bcf
On 2016/06/03 18:57:49, bcf wrote: > https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc > File net/quic/congestion_control/windowed_filter_test.cc (right): > > https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc#newcode297 > ...
4 years, 6 months ago (2016-06-03 19:32:52 UTC) #23
Jana
On 2016/06/03 19:32:52, bcf wrote: > On 2016/06/03 18:57:49, bcf wrote: > > > https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc ...
4 years, 6 months ago (2016-06-03 22:03:13 UTC) #24
Jana
https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc File net/quic/congestion_control/windowed_filter_test.cc (right): https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc#newcode297 net/quic/congestion_control/windowed_filter_test.cc:297: ASSERT_LT(windowed_min_rtt_.GetThirdBest(), rtt_sample); On 2016/06/03 18:57:49, bcf wrote: > On ...
4 years, 6 months ago (2016-06-03 22:03:26 UTC) #25
bcf
On 2016/06/03 22:03:26, Jana wrote: > https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc > File net/quic/congestion_control/windowed_filter_test.cc (right): > > https://codereview.chromium.org/2036613002/diff/40001/net/quic/congestion_control/windowed_filter_test.cc#newcode297 > ...
4 years, 6 months ago (2016-06-03 23:45:09 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036613002/80001
4 years, 6 months ago (2016-06-03 23:45:50 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-04 01:09:01 UTC) #30
bcf
On 2016/06/04 01:09:01, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 6 months ago (2016-06-06 17:20:04 UTC) #31
Jana
lgtm
4 years, 6 months ago (2016-06-06 17:48:45 UTC) #32
Jana
Can you add a comment above each ASSERT saying something about why it's required?
4 years, 6 months ago (2016-06-06 17:52:32 UTC) #33
bcf
On 2016/06/06 17:52:32, Jana wrote: > Can you add a comment above each ASSERT saying ...
4 years, 6 months ago (2016-06-06 18:08:26 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036613002/100001
4 years, 6 months ago (2016-06-06 18:09:54 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-06 19:23:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036613002/100001
4 years, 6 months ago (2016-06-06 19:26:47 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-06 19:31:19 UTC) #43
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 19:32:59 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d66635d239b6f91dcb7e11160a0bee7d99bb2e92
Cr-Commit-Position: refs/heads/master@{#398092}

Powered by Google App Engine
This is Rietveld 408576698