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

Panic if rc4 xor'ed buffer doesn't fit into output buffer #123

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

qmuntal
Copy link
Collaborator

@qmuntal qmuntal commented Oct 13, 2023

I missed this behavior when implementing RC4. If we don't panic before calling EVP_EncryptUpdate, OpenSSL throws and corrupts the destination buffer.

@qmuntal qmuntal merged commit 92d3f16 into v2 Oct 13, 2023
16 checks passed
@qmuntal qmuntal deleted the fixrc4 branch October 13, 2023 09:17
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