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

Issue 695553003: Fix bug found by /analyze: incorrect return checking. (Closed)

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

Description

Fix bug found by /analyze: incorrect return checking. SHGetPathFromIDList was being treated as if it returned an HRESULT when it actually returns a BOOL. Warning was: src\chrome\utility\importer\ie_importer_win.cc (200) : warning C6215: Cast between semantically different integer types: a Boolean type to HRESULT. R=isherman@chromium.org BUG=427616 Committed: https://crrev.com/5fa5ca33ec2f2e71df5499fe91e4d20bc72ff805 Cr-Commit-Position: refs/heads/master@{#302452}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Get rid of null-termination fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/utility/importer/ie_importer_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
brucedawson
6 years, 1 month ago (2014-10-30 22:33:20 UTC) #1
brucedawson
Changed reviewer since gab is on leave.
6 years, 1 month ago (2014-10-31 20:51:07 UTC) #3
Ilya Sherman
This seems ok to me, but I'm not familiar enough with Windows APIs to be ...
6 years, 1 month ago (2014-10-31 22:15:55 UTC) #4
brucedawson
On 2014/10/31 22:15:55, Ilya Sherman wrote: > This seems ok to me, but I'm not ...
6 years, 1 month ago (2014-10-31 22:31:42 UTC) #5
Ilya Sherman
On 2014/10/31 22:31:42, brucedawson wrote: > On 2014/10/31 22:15:55, Ilya Sherman wrote: > > This ...
6 years, 1 month ago (2014-10-31 22:37:21 UTC) #6
scottmg
lgtm https://codereview.chromium.org/695553003/diff/1/chrome/utility/importer/ie_importer_win.cc File chrome/utility/importer/ie_importer_win.cc (right): https://codereview.chromium.org/695553003/diff/1/chrome/utility/importer/ie_importer_win.cc#newcode200 chrome/utility/importer/ie_importer_win.cc:200: if (!idlist || !SHGetPathFromIDList(idlist, item_filename)) Yup, that just ...
6 years, 1 month ago (2014-10-31 22:40:53 UTC) #8
Ilya Sherman
https://codereview.chromium.org/695553003/diff/1/chrome/utility/importer/ie_importer_win.cc File chrome/utility/importer/ie_importer_win.cc (right): https://codereview.chromium.org/695553003/diff/1/chrome/utility/importer/ie_importer_win.cc#newcode880 chrome/utility/importer/ie_importer_win.cc:880: buffer[arraysize(buffer) - 1] = 0; On 2014/10/31 22:40:53, scottmg ...
6 years, 1 month ago (2014-10-31 22:45:06 UTC) #9
brucedawson
I changed the patch to just fix the return type issue. I'll look into a ...
6 years, 1 month ago (2014-10-31 23:50:16 UTC) #10
Ilya Sherman
Thanks. LGTM.
6 years, 1 month ago (2014-10-31 23:51:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695553003/20001
6 years, 1 month ago (2014-11-03 17:21:23 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-03 18:47:29 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 18:48:51 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5fa5ca33ec2f2e71df5499fe91e4d20bc72ff805
Cr-Commit-Position: refs/heads/master@{#302452}

Powered by Google App Engine
This is Rietveld 408576698