瀏覽代碼

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

Bas van der Linden 5 年之前
父節點
當前提交
ead45182aa
共有 1 個文件被更改,包括 1 次插入0 次删除
  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());