Skip to content

Annotate libraries with RequiresUnsafe attribute #125145

@agocke

Description

@agocke

Per the description in https://github.com/dotnet/designs/blob/main/accepted/2025/memory-safety/caller-unsafe.md, we need to annotate functions which should be considered unsafe.

Some known areas:

  • Almost everything in the Unsafe class
  • Many items in the Marshal class
  • Almost everything that takes a pointer parameter today (and therefore everything with unsafe on the method)

Links to API Proposals:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions