mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
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:
parent
4f2d2018de
commit
6645a69240
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user