`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
dotnet-policy-service commentedon Nov 13, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib
See info in area-owners.md if you want to be subscribed.
Fix managed ILAsm DeclSecurity blob serialization (dotnet#137484)