Skip to content

Managed ilasm emits unreadable DeclSecurity blobs #137480

Closed

Description

@MichalStrehovsky

MaterializeSecurityAttribute reuses WriteCustomBlobNamedArguments but the format is not same.

When I prodded AI to give me details, it also found:

  • The string form .permissionset demand "…" adds a UTF-16 null terminator. Native BinStrToUnicode strips the terminator.
  • .permission (without "set") gives the error UnsupportedSecurityDeclaration. Native ilasm accepts it.

(Found by compiling the src/tests tree with both old and new ILASM and comparing the results.)

Activity

  1. added
    untriaged
    on Nov 13, 2026
  2. dotnet-policy-service commented on Nov 13, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib
    See info in area-owners.md if you want to be subscribed.

  3. removed
    untriaged
    on Nov 18, 2026
  4. added a commit that references this issue on Nov 18, 2026
    43615ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions