Skip to content

Fix Base64{Url} incorrectly handling small destinations when inputs contain whitespace - #123223

Merged
MihaZupan merged 7 commits into
mainfrom
copilot/fix-base64url-whitespace-handling
Jan 16, 2026
Merged

MihaZupan merged 7 commits into
mainfrom
copilot/fix-base64url-whitespace-handling

Add test cases for whitespace-only input with empty destination buffer

9544de8
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime failed Jan 15, 2026 in 2h 17m 18s

Build #20260115.69 had test failures

Details

Tests

  • Failed: 424 (0.01%)
  • Passed: 3,010,967 (98.31%)
  • Other: 51,364 (1.68%)
  • Total: 3,062,755

Annotations

Check failure on line 213 in .dotnet\sdk\11.0.100-alpha.1.25618.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.Shared.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.dotnet\sdk\11.0.100-alpha.1.25618.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.Shared.targets#L213

.dotnet\sdk\11.0.100-alpha.1.25618.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.Shared.targets(213,5): error NETSDK1022: (NETCORE_ENGINEERING_TELEMETRY=Build) Duplicate 'Content' items were included. The .NET SDK includes 'Content' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultContentItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'testFileToReload.json'

Check failure on line 213 in .dotnet/sdk/11.0.100-alpha.1.25618.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.dotnet/sdk/11.0.100-alpha.1.25618.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets#L213

.dotnet/sdk/11.0.100-alpha.1.25618.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets(213,5): error NETSDK1022: (NETCORE_ENGINEERING_TELEMETRY=Build) Duplicate 'Content' items were included. The .NET SDK includes 'Content' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultContentItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'testFileToReload.json'

Check failure on line 213 in .dotnet/sdk/11.0.100-alpha.1.25618.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.dotnet/sdk/11.0.100-alpha.1.25618.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets#L213

.dotnet/sdk/11.0.100-alpha.1.25618.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets(213,5): error NETSDK1022: (NETCORE_ENGINEERING_TELEMETRY=Build) Duplicate 'Content' items were included. The .NET SDK includes 'Content' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultContentItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'testFileToReload.json'

Check failure on line 44 in .packages/microsoft.dotnet.helix.sdk/11.0.0-beta.26062.101/tools/azure-pipelines/AzurePipelines.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.packages/microsoft.dotnet.helix.sdk/11.0.0-beta.26062.101/tools/azure-pipelines/AzurePipelines.MultiQueue.targets#L44

.packages/microsoft.dotnet.helix.sdk/11.0.0-beta.26062.101/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(44,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.NoSupportedCiphers_ThrowsArgumentException has failed. Check the Test tab or this console log: https://helix.dot.net/api/2019-06-17/jobs/a11447ae-49b3-4e82-94ce-56f43e1517d0/workitems/System.Net.Quic.Functional.Tests/console

Check failure on line 1 in System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.NoSupportedCiphers_ThrowsArgumentException

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.NoSupportedCiphers_ThrowsArgumentException

Test failed

Check failure on line 1 in System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.MismatchedCipherPolicies_ConnectAsync_ThrowsQuicException

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.MismatchedCipherPolicies_ConnectAsync_ThrowsQuicException

System.Net.Quic.QuicException : An internal error has occurred. RegistrationOpen failed: QUIC_STATUS_OUT_OF_MEMORY
Raw output
   at System.Net.Quic.ThrowHelper.ThrowMsQuicException(Int32 status, String message) in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/ThrowHelper.cs:line 144
   at System.Net.Quic.MsQuicApi..ctor(QUIC_API_TABLE* apiTable) in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 50
   at System.Net.Quic.MsQuicApi.AllocateMsQuicApi() in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 235
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ViaFactory(LazyThreadSafetyMode mode) in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 327
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 345
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue() in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 425
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value() in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 505
   at System.Net.Quic.MsQuicApi.get_Api() in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 57
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs:line 22
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57

Check failure on line 1 in System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.SupportedCipher_Success

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.SupportedCipher_Success

System.Net.Quic.QuicException : An internal error has occurred. RegistrationOpen failed: QUIC_STATUS_OUT_OF_MEMORY
Raw output
   at System.Net.Quic.ThrowHelper.ThrowMsQuicException(Int32 status, String message) in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/ThrowHelper.cs:line 144
   at System.Net.Quic.MsQuicApi..ctor(QUIC_API_TABLE* apiTable) in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 50
   at System.Net.Quic.MsQuicApi.AllocateMsQuicApi() in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 235
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ViaFactory(LazyThreadSafetyMode mode) in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 327
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 345
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue() in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 425
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value() in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 505
   at System.Net.Quic.MsQuicApi.get_Api() in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 57
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs:line 22
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57

Check failure on line 1 in System.Net.Quic.Tests.MsQuicPlatformDetectionTests.SupportedLinuxPlatformsWithMsQuic_IsSupportedIsTrue

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Net.Quic.Tests.MsQuicPlatformDetectionTests.SupportedLinuxPlatformsWithMsQuic_IsSupportedIsTrue

System.Net.Quic.QuicException : An internal error has occurred. RegistrationOpen failed: QUIC_STATUS_OUT_OF_MEMORY
Raw output
   at System.Net.Quic.ThrowHelper.ThrowMsQuicException(Int32 status, String message) in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/ThrowHelper.cs:line 144
   at System.Net.Quic.MsQuicApi..ctor(QUIC_API_TABLE* apiTable) in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 50
   at System.Net.Quic.MsQuicApi.AllocateMsQuicApi() in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 235
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ViaFactory(LazyThreadSafetyMode mode) in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 327
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 345
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue() in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 425
   at System.Lazy`1[[System.Net.Quic.MsQuicApi, System.Net.Quic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value() in /_/src/libraries/System.Private.CoreLib/src/System/Lazy.cs:line 505
   at System.Net.Quic.MsQuicApi.get_Api() in /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs:line 57
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs:line 22
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57