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 779163002: Fixing loop to count up from the bottom instead of the top. (Closed)

Created:
6 years ago by brucedawson
Modified:
6 years ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixing loop to count up from the bottom instead of the top. The loop that adds prefixes from 1 billion to 3 billion has been broken since it was modified in Feb 27, 2014, change 2b59b0a. It didn't survive the change from signed to unsigned integers meaning that this test function has effectively been disabled. This bug was found by VC++'s /analyze which said: src\chrome\browser\safe_browsing\prefix_set_unittest.cc(280) : warning C6294: Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. BUG=427616 Committed: https://crrev.com/0ebc0a391d9aca92e45bd3c674bd2c140e4fac0e Cr-Commit-Position: refs/heads/master@{#307071}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/safe_browsing/prefix_set_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
brucedawson
6 years ago (2014-12-04 23:04:52 UTC) #2
Scott Hess - ex-Googler
Man, that's sad, I thought I went over those cases like 30 times. LGTM.
6 years ago (2014-12-05 03:39:18 UTC) #4
brucedawson
On 2014/12/05 03:39:18, Scott Hess - On Leave wrote: > Man, that's sad, I thought ...
6 years ago (2014-12-05 18:37:46 UTC) #7
Scott Hess - ex-Googler
On 2014/12/05 18:37:46, brucedawson wrote: > On 2014/12/05 03:39:18, Scott Hess - On Leave wrote: ...
6 years ago (2014-12-05 19:05:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779163002/1
6 years ago (2014-12-05 19:49:18 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years ago (2014-12-05 20:28:48 UTC) #11
commit-bot: I haz the power
6 years ago (2014-12-05 20:29:37 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0ebc0a391d9aca92e45bd3c674bd2c140e4fac0e
Cr-Commit-Position: refs/heads/master@{#307071}

Powered by Google App Engine
This is Rietveld 408576698