You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
safety: The grow_zeroed function must zero from old_layout.size() not mi_usable_size #176
Currently, the nightly-only implementation of Allocator::grow_zeroed incorrectly zeroes the memory in the range mi_usable_size(ptr)..new_layout.size(), when the trait contract requires zeroing in the range old_layout.size()..new_layout.size().
This is more than just a breach of contract; it is potentially unsound, as it leaves memory uninitialized that the trait contract requires to be zeroed.
Activity