rt: Zero out dynamic allocas for now
This commit is contained in:
parent
a6c14964c8
commit
83ac32e8aa
@ -59,6 +59,7 @@ rust_obstack_chunk::alloc(size_t len, type_desc *tydesc) {
|
||||
|
||||
rust_obstack_alloc *a = new(data + alen) rust_obstack_alloc(len, tydesc);
|
||||
alen += sizeof(*a) + len;
|
||||
memset(a->data, '\0', len); // FIXME: For GC.
|
||||
return &a->data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user