Note
Except for memory created by using stackalloc, the C# compiler and the common language runtime (CLR) do not perform any security buffer overrun checks. As with all unsafe code, use caution.
This is incorrect - fixed value buffer constructed types have the UnsafeValueTypeAttribute applied, and this invoked buffer overrun checks by the CLR, so they do have overrun checks.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for raising this issue @johnkellyoxford I've added to an upcoming sprint when we next update this topic.
Hi @john-h-k,
This was a great observation and a good issue to post, I updated the docs accordingly in this pull: https://github.com/dotnet/docs/pull/18032 thank you!
Most helpful comment
Thanks for raising this issue @johnkellyoxford I've added to an upcoming sprint when we next update this topic.