You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The runtime<->aspnetcore shared src is out of sync #18943
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Shared/runtime/Http3/QPack/QPackDecoder.cs
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
index 6f63d66..958dfac 100644
--- a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
+++ b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
@@ -269,6 +269,10 @@ namespace System.Net.Http.QPack
if (_integerDecoder.BeginTryDecode((byte)prefixInt, LiteralHeaderFieldWithoutNameReferencePrefix, out intResult))
{
+ if (intResult == 0)
+ {
+ throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, ""));
+ }
OnStringLength(intResult, State.HeaderName);
}
else
@@ -303,6 +307,10 @@ namespace System.Net.Http.QPack
case State.HeaderNameLength:
if (_integerDecoder.TryDecode(b, out intResult))
{
+ if (intResult == 0)
+ {
+ throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, ""));
+ }
OnStringLength(intResult, nextState: State.HeaderName);
}
break;
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Shared/runtime/Http3/QPack/QPackDecoder.cs
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
index 6f63d66..958dfac 100644
--- a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
+++ b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
@@ -269,6 +269,10 @@ namespace System.Net.Http.QPack
if (_integerDecoder.BeginTryDecode((byte)prefixInt, LiteralHeaderFieldWithoutNameReferencePrefix, out intResult))
{
+ if (intResult == 0)
+ {
+ throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, ""));
+ }
OnStringLength(intResult, State.HeaderName);
}
else
@@ -303,6 +307,10 @@ namespace System.Net.Http.QPack
case State.HeaderNameLength:
if (_integerDecoder.TryDecode(b, out intResult))
{
+ if (intResult == 0)
+ {
+ throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, ""));
+ }
OnStringLength(intResult, nextState: State.HeaderName);
}
break;
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
modified: src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
modified: src/Shared/runtime/Http3/QPack/QPackEncoder.cs
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs b/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
index dab58814..45bb2a6b 100644
--- a/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
+++ b/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
@@ -596,7 +596,7 @@ namespace System.Net.Http.HPack
/// Encodes a "Literal Header Field without Indexing" to a new array, but only the index portion;
/// a subsequent call to <c>EncodeStringLiteral</c> must be used to encode the associated value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index)
{
Span<byte> span = stackalloc byte[256];
bool success = EncodeLiteralHeaderFieldWithoutIndexing(index, span, out int length);
@@ -608,7 +608,7 @@ namespace System.Net.Http.HPack
/// Encodes a "Literal Header Field without Indexing - New Name" to a new array, but only the name portion;
/// a subsequent call to <c>EncodeStringLiteral</c> must be used to encode the associated value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingNewNameToAllocatedArray(string name)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingNewNameToAllocatedArray(string name)
{
Span<byte> span = stackalloc byte[256];
bool success = EncodeLiteralHeaderFieldWithoutIndexingNewName(name, span, out int length);
@@ -617,7 +617,7 @@ namespace System.Net.Http.HPack
}
/// <summary>Encodes a "Literal Header Field without Indexing" to a new array.</summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index, string value)
{
Span<byte> span =
#if DEBUG
diff --git a/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs b/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
index c7f1ec90..f1f68905 100644
--- a/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
+++ b/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
@@ -96,7 +96,7 @@ namespace System.Net.Http
// Cold path: copy to a temporary buffer before calling span-based read.
return TryReadSlow(ref reader, out value);
- static bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
+ static unsafe bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
{
ReadOnlySpan<byte> span = reader.CurrentSpan;
diff --git a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
index 5d96530b..07ff8029 100644
--- a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
+++ b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
@@ -34,7 +34,7 @@ namespace System.Net.Http.QPack
}
}
- public static byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
+ public static unsafe byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
{
Span<byte> buffer = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength];
@@ -88,7 +88,7 @@ namespace System.Net.Http.QPack
/// <summary>
/// Encodes just the name part of a Literal Header Field With Static Name Reference. Must call <see cref="EncodeValueString(string, Encoding?, Span{byte}, out int)"/> after to encode the header's value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
{
Span<byte> temp = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength];
@@ -99,7 +99,7 @@ namespace System.Net.Http.QPack
return temp.Slice(0, headerBytesWritten).ToArray();
}
- public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index, string value)
{
Span<byte> temp = value.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[value.Length + IntegerEncoder.MaxInt32EncodedLength * 2];
bool res = EncodeLiteralHeaderFieldWithStaticNameReference(index, value, temp, out int bytesWritten);
@@ -159,7 +159,7 @@ namespace System.Net.Http.QPack
/// <summary>
/// Encodes just the value part of a Literawl Header Field Without Static Name Reference. Must call <see cref="EncodeValueString(string, Encoding?, Span{byte}, out int)"/> after to encode the header's value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name)
{
Span<byte> temp = name.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength] : new byte[name.Length + IntegerEncoder.MaxInt32EncodedLength];
@@ -169,7 +169,7 @@ namespace System.Net.Http.QPack
return temp.Slice(0, nameLength).ToArray();
}
- public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name, string value)
{
Span<byte> temp = (name.Length + value.Length) < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[name.Length + value.Length + IntegerEncoder.MaxInt32EncodedLength * 2];
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
modified: src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
modified: src/Shared/runtime/Http3/QPack/QPackEncoder.cs
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs b/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
index dab58814..45bb2a6b 100644
--- a/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
+++ b/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
@@ -596,7 +596,7 @@ namespace System.Net.Http.HPack
/// Encodes a "Literal Header Field without Indexing" to a new array, but only the index portion;
/// a subsequent call to <c>EncodeStringLiteral</c> must be used to encode the associated value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index)
{
Span<byte> span = stackalloc byte[256];
bool success = EncodeLiteralHeaderFieldWithoutIndexing(index, span, out int length);
@@ -608,7 +608,7 @@ namespace System.Net.Http.HPack
/// Encodes a "Literal Header Field without Indexing - New Name" to a new array, but only the name portion;
/// a subsequent call to <c>EncodeStringLiteral</c> must be used to encode the associated value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingNewNameToAllocatedArray(string name)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingNewNameToAllocatedArray(string name)
{
Span<byte> span = stackalloc byte[256];
bool success = EncodeLiteralHeaderFieldWithoutIndexingNewName(name, span, out int length);
@@ -617,7 +617,7 @@ namespace System.Net.Http.HPack
}
/// <summary>Encodes a "Literal Header Field without Indexing" to a new array.</summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index, string value)
{
Span<byte> span =
#if DEBUG
diff --git a/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs b/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
index c7f1ec90..f1f68905 100644
--- a/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
+++ b/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
@@ -96,7 +96,7 @@ namespace System.Net.Http
// Cold path: copy to a temporary buffer before calling span-based read.
return TryReadSlow(ref reader, out value);
- static bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
+ static unsafe bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
{
ReadOnlySpan<byte> span = reader.CurrentSpan;
diff --git a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
index 5d96530b..07ff8029 100644
--- a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
+++ b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
@@ -34,7 +34,7 @@ namespace System.Net.Http.QPack
}
}
- public static byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
+ public static unsafe byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
{
Span<byte> buffer = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength];
@@ -88,7 +88,7 @@ namespace System.Net.Http.QPack
/// <summary>
/// Encodes just the name part of a Literal Header Field With Static Name Reference. Must call <see cref="EncodeValueString(string, Encoding?, Span{byte}, out int)"/> after to encode the header's value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
{
Span<byte> temp = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength];
@@ -99,7 +99,7 @@ namespace System.Net.Http.QPack
return temp.Slice(0, headerBytesWritten).ToArray();
}
- public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index, string value)
{
Span<byte> temp = value.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[value.Length + IntegerEncoder.MaxInt32EncodedLength * 2];
bool res = EncodeLiteralHeaderFieldWithStaticNameReference(index, value, temp, out int bytesWritten);
@@ -159,7 +159,7 @@ namespace System.Net.Http.QPack
/// <summary>
/// Encodes just the value part of a Literawl Header Field Without Static Name Reference. Must call <see cref="EncodeValueString(string, Encoding?, Span{byte}, out int)"/> after to encode the header's value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name)
{
Span<byte> temp = name.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength] : new byte[name.Length + IntegerEncoder.MaxInt32EncodedLength];
@@ -169,7 +169,7 @@ namespace System.Net.Http.QPack
return temp.Slice(0, nameLength).ToArray();
}
- public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name, string value)
{
Span<byte> temp = (name.Length + value.Length) < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[name.Length + value.Length + IntegerEncoder.MaxInt32EncodedLength * 2];
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
modified: src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
modified: src/Shared/runtime/Http3/QPack/QPackEncoder.cs
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs b/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
index dab58814..45bb2a6b 100644
--- a/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
+++ b/src/Shared/runtime/Http2/Hpack/HPackEncoder.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
@@ -596,7 +596,7 @@ namespace System.Net.Http.HPack
/// Encodes a "Literal Header Field without Indexing" to a new array, but only the index portion;
/// a subsequent call to <c>EncodeStringLiteral</c> must be used to encode the associated value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index)
{
Span<byte> span = stackalloc byte[256];
bool success = EncodeLiteralHeaderFieldWithoutIndexing(index, span, out int length);
@@ -608,7 +608,7 @@ namespace System.Net.Http.HPack
/// Encodes a "Literal Header Field without Indexing - New Name" to a new array, but only the name portion;
/// a subsequent call to <c>EncodeStringLiteral</c> must be used to encode the associated value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingNewNameToAllocatedArray(string name)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingNewNameToAllocatedArray(string name)
{
Span<byte> span = stackalloc byte[256];
bool success = EncodeLiteralHeaderFieldWithoutIndexingNewName(name, span, out int length);
@@ -617,7 +617,7 @@ namespace System.Net.Http.HPack
}
/// <summary>Encodes a "Literal Header Field without Indexing" to a new array.</summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(int index, string value)
{
Span<byte> span =
#if DEBUG
diff --git a/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs b/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
index c7f1ec90..f1f68905 100644
--- a/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
+++ b/src/Shared/runtime/Http3/Helpers/VariableLengthIntegerHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
@@ -96,7 +96,7 @@ namespace System.Net.Http
// Cold path: copy to a temporary buffer before calling span-based read.
return TryReadSlow(ref reader, out value);
- static bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
+ static unsafe bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
{
ReadOnlySpan<byte> span = reader.CurrentSpan;
diff --git a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
index 5d96530b..07ff8029 100644
--- a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
+++ b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
@@ -34,7 +34,7 @@ namespace System.Net.Http.QPack
}
}
- public static byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
+ public static unsafe byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
{
Span<byte> buffer = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength];
@@ -88,7 +88,7 @@ namespace System.Net.Http.QPack
/// <summary>
/// Encodes just the name part of a Literal Header Field With Static Name Reference. Must call <see cref="EncodeValueString(string, Encoding?, Span{byte}, out int)"/> after to encode the header's value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
{
Span<byte> temp = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength];
@@ -99,7 +99,7 @@ namespace System.Net.Http.QPack
return temp.Slice(0, headerBytesWritten).ToArray();
}
- public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index, string value)
{
Span<byte> temp = value.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[value.Length + IntegerEncoder.MaxInt32EncodedLength * 2];
bool res = EncodeLiteralHeaderFieldWithStaticNameReference(index, value, temp, out int bytesWritten);
@@ -159,7 +159,7 @@ namespace System.Net.Http.QPack
/// <summary>
/// Encodes just the value part of a Literawl Header Field Without Static Name Reference. Must call <see cref="EncodeValueString(string, Encoding?, Span{byte}, out int)"/> after to encode the header's value.
/// </summary>
- public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name)
{
Span<byte> temp = name.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength] : new byte[name.Length + IntegerEncoder.MaxInt32EncodedLength];
@@ -169,7 +169,7 @@ namespace System.Net.Http.QPack
return temp.Slice(0, nameLength).ToArray();
}
- public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name, string value)
+ public static unsafe byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string name, string value)
{
Span<byte> temp = (name.Length + value.Length) < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[name.Length + value.Length + IntegerEncoder.MaxInt32EncodedLength * 2];
Activity
analogrelay commentedon Feb 12, 2020
We are currently in-sync.
github-actions commentedon Feb 14, 2020
The shared code is out of sync.
The Diff
Sync script changes from the runtime repo #18943
Sync script changes from the runtime repo (#19062)
github-actions commentedon Feb 19, 2020
The shared code is out of sync.
The Diff
github-actions commentedon Feb 20, 2020
The shared code is out of sync.
The Diff
417 remaining items
github-actions commentedon Mar 15, 2026
The shared code is out of sync.
The Diff
github-actions commentedon Mar 16, 2026
The shared code is out of sync.
The Diff
github-actions commentedon May 9, 2026
The shared code is out of sync.
The Diff
github-actions commentedon May 10, 2026
The shared code is out of sync.
The Diff
github-actions commentedon May 11, 2026
The shared code is out of sync.
The Diff
github-actions commentedon Aug 13, 2026
The shared code is out of sync.
The Diff
github-actions commentedon Aug 14, 2026
The shared code is out of sync.
The Diff
Sync shared code from aspnetcore (#132273)
Sync shared code from aspnetcore (#136597)