Commit 7d0f4c6e authored by Martin Thomson's avatar Martin Thomson

Bug 1501174 - zero DataBuffer on allocation, r=franziskus

parent 7d8f36e9
......@@ -34,7 +34,7 @@ class DataBuffer {
void Allocate(size_t l) {
delete[] data_;
data_ = new uint8_t[l ? l : 1]; // Don't depend on new [0].
data_ = new uint8_t[l ? l : 1](); // Don't depend on new [0].
len_ = l;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment