Browse Source

annotate ByteString.CopyFrom(ReadOnlySpan<byte> bytes) as SecuritySafeCritical

Bas van der Linden 5 năm trước cách đây
mục cha
commit
ead45182aa
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      csharp/src/Google.Protobuf/ByteString.cs

+ 1 - 0
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 <see cref="ByteString" />.
         /// </summary>
+        [SecuritySafeCritical]
         public static ByteString CopyFrom(ReadOnlySpan<byte> bytes)
         {
             return new ByteString(bytes.ToArray());