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

Issue 10834006: Coverity: Fully initialize the |trace_| member variable. (Closed)

Created:
8 years, 5 months ago by James Hawkins
Modified:
8 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Coverity: Fully initialize the |trace_| member variable. Also changed the type of |count_| to size_t since it's a size variable. CID_COUNT=1 CID=13504 BUG=none TEST=none R=brettw Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148420

Patch Set 1 #

Patch Set 2 : Build fix. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M base/debug/stack_trace.h View 1 chunk +3 lines, -1 line 0 comments Download
M base/debug/stack_trace.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/debug/stack_trace_win.cc View 1 4 chunks +6 lines, -3 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
James Hawkins
8 years, 5 months ago (2012-07-25 15:23:44 UTC) #1
brettw
lgtm https://chromiumcodereview.appspot.com/10834006/diff/7001/base/debug/stack_trace_win.cc File base/debug/stack_trace_win.cc (right): https://chromiumcodereview.appspot.com/10834006/diff/7001/base/debug/stack_trace_win.cc#newcode189 base/debug/stack_trace_win.cc:189: for (size_t i = count_; i < arraysize(trace_); ...
8 years, 5 months ago (2012-07-25 17:37:26 UTC) #2
James Hawkins
https://chromiumcodereview.appspot.com/10834006/diff/7001/base/debug/stack_trace_win.cc File base/debug/stack_trace_win.cc (right): https://chromiumcodereview.appspot.com/10834006/diff/7001/base/debug/stack_trace_win.cc#newcode189 base/debug/stack_trace_win.cc:189: for (size_t i = count_; i < arraysize(trace_); ++i) ...
8 years, 5 months ago (2012-07-25 18:58:09 UTC) #3
brettw
I guess arraysize is OK if that's what the other code does. I don't think ...
8 years, 5 months ago (2012-07-25 19:25:49 UTC) #4
James Hawkins
On 2012/07/25 19:25:49, brettw wrote: > I guess arraysize is OK if that's what the ...
8 years, 5 months ago (2012-07-25 20:15:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhawkins@chromium.org/10834006/7001
8 years, 5 months ago (2012-07-25 20:16:08 UTC) #6
commit-bot: I haz the power
8 years, 5 months ago (2012-07-25 21:43:45 UTC) #7
Change committed as 148420

Powered by Google App Engine
This is Rietveld 408576698