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
StackBox and SmallBox currently expect any data to be aligned to usize but in reality type can have arbitrarily large alignment, and putting it into usize-aligned stack storage can cause all sorts of platform-specific issues.
While there is currently no way to allocate on stack with custom alignment, constructors of these types should at least check that alignment of type not any larger than the expected one, similarly to how they already check type sizes.
The text was updated successfully, but these errors were encountered:
StackBox and SmallBox currently expect any data to be aligned to
usize
but in reality type can have arbitrarily large alignment, and putting it into usize-aligned stack storage can cause all sorts of platform-specific issues.While there is currently no way to allocate on stack with custom alignment, constructors of these types should at least check that alignment of type not any larger than the expected one, similarly to how they already check type sizes.
The text was updated successfully, but these errors were encountered: