8000 Check return value from Base64.DecodeFromUtf8InPlace(), throw if error by aseigler · Pull Request #331 · passwordless-lib/fido2-net-lib · GitHub
[go: up one dir, main page]

Skip to content

Conversation

aseigler
Copy link
Collaborator

FIDO Conformance Tools section Server-ServerAuthenticatorAttestationResponse-Resp-1, test F-3 Send ServerAuthenticatorAttestationResponse sends illegally formatted base64url data for "id" field and expects failure. We were ignoring the return value from Base64.DecodeFromUtf8InPlace(), so we were not detecting this condition. This PR aligns us with what Convert.FromBase64CharArray() would throw given the same input string.

@aseigler aseigler self-assigned this Oct 10, 2022
@aseigler aseigler added the bug Something isn't working label Oct 10, 2022
@aseigler aseigler merged commit c948bc4 into passwordless-lib:master Oct 11, 2022
@aseigler aseigler deleted the fix-badbase64char branch October 11, 2022 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0