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

Issue 700713002: Fix unreachable code bug caused by anding with zero, per finnur@. (Closed)

Created:
6 years, 1 month ago by brucedawson
Modified:
6 years, 1 month ago
Reviewers:
Finnur
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix unreachable code bug caused by anding with zero, per finnur@. VC++'s /analyze pointed out that an incorrect operator was being used. The warning was: src\chrome\browser\enumerate_modules_model_win.cc(898) : warning C6313: Incorrect operator: zero-valued flag cannot be tested with bitwise-and. Use an equality test to check for zero-valued flags. This bug dates back to the original code in November 2010. Fixed to 'and' with the INVESTIGATING value, as intended, after discussion with finnur@. BUG=427616 Committed: https://crrev.com/4e7e6b35fd63a90f5f93227200249ebfa61dd5a1 Cr-Commit-Position: refs/heads/master@{#302715}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed fix after discussion with finnur@ - and with INVESTIGATING #

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

Messages

Total messages: 10 (2 generated)
brucedawson
6 years, 1 month ago (2014-11-04 01:17:18 UTC) #2
brucedawson
On 2014/11/04 01:17:18, brucedawson wrote: The two obvious ways to fix this bug are to ...
6 years, 1 month ago (2014-11-04 01:50:13 UTC) #3
Finnur
https://codereview.chromium.org/700713002/diff/1/chrome/browser/enumerate_modules_model_win.cc File chrome/browser/enumerate_modules_model_win.cc (right): https://codereview.chromium.org/700713002/diff/1/chrome/browser/enumerate_modules_model_win.cc#newcode898 chrome/browser/enumerate_modules_model_win.cc:898: if (module->recommended_action == ModuleEnumerator::NONE) { No, you were right. ...
6 years, 1 month ago (2014-11-04 17:10:15 UTC) #4
brucedawson
Fixed as discussed.
6 years, 1 month ago (2014-11-04 18:24:01 UTC) #5
Finnur
LGTM
6 years, 1 month ago (2014-11-04 18:39:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/700713002/20001
6 years, 1 month ago (2014-11-04 23:28:09 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-05 00:17:00 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-05 00:17:45 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4e7e6b35fd63a90f5f93227200249ebfa61dd5a1
Cr-Commit-Position: refs/heads/master@{#302715}

Powered by Google App Engine
This is Rietveld 408576698