asan: Fix invalid memory access in UniversalExceptionRaise()

TEST=crashpad_util_test ExcClientVariants.UniversalExceptionRaise
R=rsesek@chromium.org

Review URL: https://codereview.chromium.org/1283323010 .
This commit is contained in:
Mark Mentovai 2015-08-19 18:47:02 -04:00
parent 4f2d2018de
commit 6645a69240

View File

@ -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];
}