Fix Base64 decoding regressions from whitespace handling (#86396)
authorStephen Toub <stoub@microsoft.com>
Thu, 18 May 2023 13:21:40 +0000 (09:21 -0400)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 13:21:40 +0000 (09:21 -0400)
commit2f18df4291febc514781ecf92593d9d00f3d8f57
tree215330fc1edeac1f02ed2333db4bce0c08982ab3
parent003b5eacaf9fcc135532c28206698b4753a8b47a
Fix Base64 decoding regressions from whitespace handling (#86396)

* Fix Base64 decoding regressions from whitespace handling

Put the main code paths back to how they were before, with the sole exception being an extra method argument and an extra check in the InvalidData exit section that delegates to a helper if that method argument is true.

* Address PR feedback for pre-existing code
src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Decoder.cs