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

pull/7701/head
Bas van der Linden 5 years ago
parent ffb2b53834
commit ead45182aa
  1. 1
      csharp/src/Google.Protobuf/ByteString.cs

@ -245,6 +245,7 @@ namespace Google.Protobuf
/// are copied, so further modifications to the span will not /// are copied, so further modifications to the span will not
/// be reflected in the returned <see cref="ByteString" />. /// be reflected in the returned <see cref="ByteString" />.
/// </summary> /// </summary>
[SecuritySafeCritical]
public static ByteString CopyFrom(ReadOnlySpan<byte> bytes) public static ByteString CopyFrom(ReadOnlySpan<byte> bytes)
{ {
return new ByteString(bytes.ToArray()); return new ByteString(bytes.ToArray());

Loading…
Cancel
Save