Merge "mark atrace buffers as uninitialized" into rvc-dev

This commit is contained in:
Tim Murray 2020-05-05 22:33:04 +00:00 committed by Android (Google) Code Review
commit 9842adf768

View file

@ -198,7 +198,7 @@ void atrace_update_tags()
} }
#define WRITE_MSG(format_begin, format_end, name, value) { \ #define WRITE_MSG(format_begin, format_end, name, value) { \
char buf[ATRACE_MESSAGE_LENGTH]; \ char buf[ATRACE_MESSAGE_LENGTH] __attribute__((uninitialized)); \
int pid = getpid(); \ int pid = getpid(); \
int len = snprintf(buf, sizeof(buf), format_begin "%s" format_end, pid, \ int len = snprintf(buf, sizeof(buf), format_begin "%s" format_end, pid, \
name, value); \ name, value); \