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

Issue 2918583003: Fix BOOLEAN truncation warning in sync_policy.cc. (Closed)

Created:
3 years, 6 months ago by Bret
Modified:
3 years, 6 months ago
Reviewers:
Will Harris
CC:
chromium-reviews, wfh+watch_chromium.org, pennymac+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix BOOLEAN truncation warning in sync_policy.cc. PVS-Studio gave this warning: sandbox\win\src\sync_policy.cc(198): warning V724: Converting type 'uint32_t' to type 'BOOLEAN' can lead to a loss of high-order bits. Non-zero value can become 'FALSE'. Since initial_state comes from an IPC it seems like this might actually happen in practice. BUG=697659 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Review-Url: https://codereview.chromium.org/2918583003 Cr-Commit-Position: refs/heads/master@{#481200} Committed: https://chromium.googlesource.com/chromium/src/+/9d187859c424c34fc77448d5fa56515f30b8ceed

Patch Set 1 #

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M sandbox/win/src/sync_policy.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (14 generated)
Bret
3 years, 6 months ago (2017-06-17 01:22:57 UTC) #12
Will Harris
lgtm
3 years, 6 months ago (2017-06-21 12:16:04 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.chromium.org/2918583003/20001
3 years, 6 months ago (2017-06-21 13:00:14 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 14:23:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9d187859c424c34fc77448d5fa56...

Powered by Google App Engine
This is Rietveld 408576698