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

Unified Diff: util/mach/exc_client_variants.cc

Issue 1283323010: asan: Fix invalid memory access in UniversalExceptionRaise() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@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: util/mach/exc_client_variants.cc
diff --git a/util/mach/exc_client_variants.cc b/util/mach/exc_client_variants.cc
index 71e39691acec5ff22cb86d68e11298c338722008..2495a60be3bff7404f198aac0bf4931e527057a9 100644
--- a/util/mach/exc_client_variants.cc
+++ b/util/mach/exc_client_variants.cc
@@ -45,7 +45,7 @@ kern_return_t UniversalExceptionRaise(exception_behavior_t behavior,
if ((behavior & MACH_EXCEPTION_CODES) == 0 && code_count) {
small_code_vector.reserve(code_count);
for (size_t code_index = 0; code_index < code_count; ++code_index) {
- small_code_vector[code_index] = code[code_index];
+ small_code_vector.push_back(code[code_index]);
}
small_code = &small_code_vector[0];
}
« 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