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

Unified Diff: blimp/net/blimp_stats.h

Issue 2253513004: Fix off-by-one error in counter array sizing in BlimpStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: spaces around plus Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | blimp/net/blimp_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_stats.h
diff --git a/blimp/net/blimp_stats.h b/blimp/net/blimp_stats.h
index c4019f3fdb1ca11c68dfdcc8289303846d1bd8f0..daba94b416b771959ca99d7437d12c18f486dc3c 100644
--- a/blimp/net/blimp_stats.h
+++ b/blimp/net/blimp_stats.h
@@ -49,7 +49,7 @@ class BLIMP_NET_EXPORT BlimpStats {
// Values must be read or modified using base::subtle::NoBarrier* functions.
// We are using the NoBarrier* functions because we value performance over
// accuracy of the data.
- base::subtle::Atomic32 values_[EVENT_TYPE_MAX];
+ base::subtle::Atomic32 values_[EVENT_TYPE_MAX + 1];
DISALLOW_COPY_AND_ASSIGN(BlimpStats);
};
« no previous file with comments | « no previous file | blimp/net/blimp_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698