Skip FuzzRSASignPSS if fuzz key size too small #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I happened to notice this error in an example fuzz test run. Easily reproducible locally, unlike the issues with memory we've been running into. It's just an issue with the inputs, not the library's behavior.
https://dev.azure.com/dnceng/internal/_build/results?buildId=2002188&view=logs&j=55c8d132-ed74-525b-1d69-265188317290&t=b5ce8968-48a5-5335-4111-4f857844d28d&l=3380
Also repros without cngcrypto locally:
I dug around for the logic to test for this condition: the check seems to be fairly deep in the crypto methods in a way that I can't see how to reuse here, so I copied out the relevant lines.
I'm guessing we shouldn't check in
f8e9f0db75c54772972fb2f46f6871a0c2311fc17ad6bcc68cb84c789bdd9e2c
because this isn't really an interesting result, it's just an input validity check we didn't have yet. Or should we check it in anyway so fuzz testing can see an example of thisreturn
branch being hit?