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

Unified Diff: runtime/platform/assert.cc

Issue 2383293003: - fix some cases where we are using uninitialized memory (Closed)
Patch Set: Fix lint issue. Created 4 years, 2 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 | « runtime/platform/assert.h ('k') | runtime/platform/memory_sanitizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.cc
diff --git a/runtime/platform/assert.cc b/runtime/platform/assert.cc
index 000546a3debd25dd4091340f83972c9794b74628..524c7a2470fa4f75d007dfd12b3fe97024321a0f 100644
--- a/runtime/platform/assert.cc
+++ b/runtime/platform/assert.cc
@@ -20,6 +20,7 @@ void DynamicAssertionHelper::Fail(const char* format, ...) {
// Print the file and line number into the buffer.
char buffer[4 * KB];
+ MSAN_UNPOISON(buffer, sizeof(buffer));
intptr_t file_and_line_length =
snprintf(buffer, sizeof(buffer), "%s: %d: error: ", file, line_);
« no previous file with comments | « runtime/platform/assert.h ('k') | runtime/platform/memory_sanitizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698