Whitelist serialized objects wrt MSAN.

R=jochen@chromium.org
BUG=chromium:457459
LOG=N

Review URL: https://codereview.chromium.org/919613002

Cr-Commit-Position: refs/heads/master@{#26578}
This commit is contained in:
yangguo 2015-02-11 06:03:10 -08:00 committed by Commit bot
parent c889fb4c1d
commit 5d1a9b09f3

View File

@ -2120,6 +2120,10 @@ int Serializer::ObjectSerializer::OutputRawData(
} }
const char* description = code_object_ ? "Code" : "Byte"; const char* description = code_object_ ? "Code" : "Byte";
#ifdef MEMORY_SANITIZER
// Object sizes are usually rounded up with uninitialized padding space.
MSAN_MEMORY_IS_INITIALIZED(object_start + base, bytes_to_output);
#endif // MEMORY_SANITIZER
sink_->PutRaw(object_start + base, bytes_to_output, description); sink_->PutRaw(object_start + base, bytes_to_output, description);
if (code_object_) delete[] object_start; if (code_object_) delete[] object_start;
} }