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

Do not modify output when Cipher.doFinal fails #123

Merged
merged 5 commits into from
Sep 1, 2020

Conversation

SalusaSecondus
Copy link
Contributor

Description of changes:
This change modifies Cipher.doFinal such that when an exception is thrown the out-parameter remain unchanged.

The diff appears to be choking on some indentation changes and thinking this is a bigger change than it appears. I strongly recommend that viewers select the "ignore white-space" option when reviewing this PR as it makes the change much easier to see and read.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@praus
Copy link
Contributor

praus commented Aug 31, 2020

I would like to have two people review this change. I can be one of them though if you find two other people before I manage to look at this, feel free to merge. My reasoning for 2-person review is that we've made a mistake in this critical logic once already (presumably we didn't intend to have the behavior we are fixing) and I'd like to reduce the likelihood of another mistake :-).

@SalusaSecondus SalusaSecondus merged commit 07b6e86 into corretto:develop Sep 1, 2020
@SalusaSecondus SalusaSecondus deleted the doFinal3 branch September 1, 2020 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants