Closed waltiam closed 1 month ago
Other (describe below)
The definition for the reason the ArgumentOutOfRange exception is thrown is "inputBuffer parameter requires a non-negative number"
inputBuffer
byte[]
inputOffset < 0
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.tobase64transform.transformblock?view=net-8.0#system-security-cryptography-tobase64transform-transformblock(system-byte()-system-int32-system-int32-system-byte()-system-int32)
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Security.Cryptography/ToBase64Transform.xml
73cb004f-eba6-29ef-4f75-b0a68f3c6dee
@dotnet-bot
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones
This has been fixed and will eventually be live. Thanks for pointing it out.
Type of issue
Other (describe below)
Description
The definition for the reason the ArgumentOutOfRange exception is thrown is "inputBuffer parameter requires a non-negative number"
inputBuffer
isbyte[]
so a negative number is not a valid descriptioninputOffset < 0
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.tobase64transform.transformblock?view=net-8.0#system-security-cryptography-tobase64transform-transformblock(system-byte()-system-int32-system-int32-system-byte()-system-int32)
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Security.Cryptography/ToBase64Transform.xml
Document Version Independent Id
73cb004f-eba6-29ef-4f75-b0a68f3c6dee
Article author
@dotnet-bot