Index: mojo/public/cpp/bindings/lib/fixed_buffer.cc |
diff --git a/mojo/public/cpp/bindings/lib/fixed_buffer.cc b/mojo/public/cpp/bindings/lib/fixed_buffer.cc |
index 7e19ae27bd21934fadc3ff49d8e18a764683a4cb..53967eb43d91e50dd3a1e3faafa154fca6913311 100644 |
--- a/mojo/public/cpp/bindings/lib/fixed_buffer.cc |
+++ b/mojo/public/cpp/bindings/lib/fixed_buffer.cc |
@@ -19,6 +19,7 @@ FixedBuffer::FixedBuffer(size_t size) |
: ptr_(NULL), |
cursor_(0), |
size_(internal::Align(size)) { |
+ // calloc() required to zero memory and thus avoid info leaks. |
ptr_ = static_cast<char*>(calloc(size_, 1)); |
} |