Merge "fdsan: reset va_list between varargs traversals"

This commit is contained in:
Treehugger Robot 2018-10-15 21:05:44 +00:00 committed by Gerrit Code Review
commit daf746b155

View file

@ -188,6 +188,8 @@ __printflike(1, 0) static void fdsan_error(const char* fmt, ...) {
async_safe_fatal_va_list("fdsan", fmt, va);
} else {
async_safe_format_log_va_list(ANDROID_LOG_ERROR, "fdsan", fmt, va);
va_end(va);
va_start(va, fmt);
size_t len =
async_safe_format_buffer_va_list(abort_message.buf, sizeof(abort_message.buf), fmt, va);
abort_message.size = len + sizeof(size_t);