dotnet / corert

This repo contains CoreRT, an experimental .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying compiler toolchain.
http://dot.net
MIT License
2.91k stars 510 forks source link

Wasm: Use the property for ShadowStackTop to ensure global exists #8353

Closed yowl closed 4 years ago

yowl commented 4 years ago

Depending on input, the first call to a RawPInvoke could occur before the shadow stack global was added. This change requests the global via the property getter to ensure it is created before use.