-
- Downloads
Fix #118402: support overaligned types in MEM_CXX_CLASS_ALLOC_FUNCS
Previously, the alignment of structs that use `MEM_CXX_CLASS_ALLOC_FUNCS` were not taken into account when doing the allocation. This can cause some data to be mis-aligned and leads to crashes when cpu instructions or code expect the data to be aligned. The fix is to provide an overload of `operator new` that accepts the alignment as parameter. More info: https://en.cppreference.com/w/cpp/language/new (search for `align_val_t`). Pull Request: https://projects.blender.org/blender/blender/pulls/118526
Please register or sign in to comment