From ead45182aac1103a98dbbd068b89ee883cc7eb28 Mon Sep 17 00:00:00 2001 From: Bas van der Linden Date: Sun, 12 Jul 2020 14:43:42 +0200 Subject: [PATCH] annotate ByteString.CopyFrom(ReadOnlySpan bytes) as SecuritySafeCritical --- csharp/src/Google.Protobuf/ByteString.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/csharp/src/Google.Protobuf/ByteString.cs b/csharp/src/Google.Protobuf/ByteString.cs index 74dc865e9d..e7d5f4dc83 100644 --- a/csharp/src/Google.Protobuf/ByteString.cs +++ b/csharp/src/Google.Protobuf/ByteString.cs @@ -245,6 +245,7 @@ namespace Google.Protobuf /// are copied, so further modifications to the span will not /// be reflected in the returned . /// + [SecuritySafeCritical] public static ByteString CopyFrom(ReadOnlySpan bytes) { return new ByteString(bytes.ToArray());