Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception handling: Wrap illegal state exception #397

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

arthurscchan
Copy link
Collaborator

Summary

For some malformed PEM section, the Base64 encoder of bouncy castle used by the sigstore java could throw an illegal state exception. As it is a runtime exception, JVM don’t requires it to be specifically caught, thus it does not appear in the auto-generated Javadoc and it is also assuming that exception should throw to the user. But since it is used by sigstore java as an API, it is better to wrap it with sigstore java exception.
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=57336

Release Note

Documentation

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
@loosebazooka loosebazooka added the safe to test conformance testing label label Mar 24, 2023
@loosebazooka loosebazooka merged commit a01c405 into sigstore:main Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test conformance testing label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants