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

libgcrypt: fixes process() not returning std:nullopt when main loop fails #4

Merged
merged 1 commit into from
May 25, 2019

Conversation

s-zanella
Copy link
Contributor

process() could return a value even when the main encryption/decryption loop failed.

This causes e.g. encryption to return a truncated ciphertext when the output buffer is too short and the loop iterates at least once, setting ret.

@guidovranken guidovranken merged commit 8b1c4d8 into guidovranken:master May 25, 2019
@guidovranken
Copy link
Owner

Thanks!

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.

2 participants