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

Issue 2384493003: Fix GN issues identified by MSVC static analysis. (Closed)

Created:
4 years, 2 months ago by brettw
Modified:
4 years, 2 months ago
Reviewers:
brucedawson
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix GN issues identified by MSVC static analysis. MSVC's /analyze identified two missing null checks because it noted that a pointer was null checked in one place but not another. After some study I determined that null checks are not necessary for these values so I removed them. Although isxdigit takes an int, the input must be an unsigned char or the behavior is undefined. I added the cast. I think this API is suboptimal. BUG=643842, 427616 Committed: https://crrev.com/e23e7021f9a06d621088bc13856db9ba93c328c0 Cr-Commit-Position: refs/heads/master@{#421945}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M tools/gn/command_format.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
brettw
4 years, 2 months ago (2016-09-29 20:14:23 UTC) #2
brucedawson
That makes the intent clearer. Thanks. lgtm I fixed a spelling error and added bug ...
4 years, 2 months ago (2016-09-29 20:17:26 UTC) #4
brettw
xdigit
4 years, 2 months ago (2016-09-29 20:21:30 UTC) #5
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/2384493003/1
4 years, 2 months ago (2016-09-29 21:38:40 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-29 21:57:51 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 22:00:21 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e23e7021f9a06d621088bc13856db9ba93c328c0
Cr-Commit-Position: refs/heads/master@{#421945}

Powered by Google App Engine
This is Rietveld 408576698