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

Unified Diff: blimp/net/blimp_stats.cc

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 | « blimp/net/blimp_stats.h ('k') | blimp/net/stream_socket_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_stats.cc
diff --git a/blimp/net/blimp_stats.cc b/blimp/net/blimp_stats.cc
index 3912adba972338a92d501d4464efc1ed28a465e4..638f9403b02d9dbd6e46bbb78cc8275f8146711f 100644
--- a/blimp/net/blimp_stats.cc
+++ b/blimp/net/blimp_stats.cc
@@ -18,7 +18,7 @@ BlimpStats* BlimpStats::GetInstance() {
}
BlimpStats::BlimpStats() {
- for (size_t i = 0; i < EVENT_TYPE_MAX; ++i) {
+ for (size_t i = 0; i <= EVENT_TYPE_MAX; ++i) {
base::subtle::NoBarrier_Store(&values_[i], 0);
}
}
« no previous file with comments | « blimp/net/blimp_stats.h ('k') | blimp/net/stream_socket_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698