Should this unsafe code work also in .NET Core 3?
Ooh, this is a fun find; what is happening here is that your local is getting optimized away – there are no locals remaining, which means that there is no .locals init, which means that stackalloc behaves differently, and does not wipe the space; private static unsafe uint Reinterpret1() { byte* bytes = stackalloc byte[4]; … Read more