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
This was discovered when reading through liballoc* to write a custom memory allocator for Firefox. I suspect it's hard to make it trigger due to overcommit policies and the general lack of usage of over-aligned types.
…id-this-land, r=nagisa
alloc_system: Handle failure properly
The Unix implementation was incorrectly handling failure for reallocation of
over-aligned types by not checking for NULL.
Closesrust-lang#32993
The Unix implementation of
__rust_reallocate
inliballoc_system
boils down to:The
else
branch of the conditional doesn't properly handle the case whereallocate
fails. For comparison's sake, the Windows implementation says:The text was updated successfully, but these errors were encountered: