devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

wutmalloc: Fix memalign to ensure the size is aligned #196

Closed Maschell closed 2 years ago

Maschell commented 2 years ago

The buffer size for FSReadFile/FSWriteFile needs to be aligned to 0x40, otherwise heap corruptions could happen when multithreading.