4 ms·
I once maintained a project that had a custom memcpy implementation because they didn't want to link to libc. They assumed aligned writes were safe and the com
by nly 5y ago
I once maintained a project that had a custom memcpy implementation because they didn't want to link to libc.
They assumed aligned writes were safe and the compiler optimized it incorrectly, resulting in memory corruption.