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

Unified Diff: base/trace_event/trace_log.cc

Issue 1319183002: [ETW] Fix wrong index in UpdateETWCategoryGroupEnabledFlags resulting in overflow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_log.cc
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc
index af2124efd007c1f17b7279190ec7482244ebc869..f6c9115646314f6ca7e3e048fa1fda56148d30cd 100644
--- a/base/trace_event/trace_log.cc
+++ b/base/trace_event/trace_log.cc
@@ -1718,9 +1718,9 @@ void TraceLog::UpdateETWCategoryGroupEnabledFlags() {
DCHECK(category_group);
if (base::trace_event::TraceEventETWExport::IsCategoryGroupEnabled(
category_group)) {
- g_category_group_enabled[category_index] |= ENABLED_FOR_ETW_EXPORT;
+ g_category_group_enabled[i] |= ENABLED_FOR_ETW_EXPORT;
} else {
- g_category_group_enabled[category_index] &= ~ENABLED_FOR_ETW_EXPORT;
+ g_category_group_enabled[i] &= ~ENABLED_FOR_ETW_EXPORT;
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698