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

Fix overflow bug. See issue #776 #806

Merged
merged 1 commit into from Jun 1, 2020
Merged

Fix overflow bug. See issue #776 #806

merged 1 commit into from Jun 1, 2020

Conversation

techhead
Copy link
Contributor

Fixes #776

See comments here:
#776 (comment)
#776 (comment)

The question is sort of "how much" to fix this one. I left version 2a as is, which will use all 254 bytes of the input and wrap thereafter. This patch fixes 2b only.

@recrsn
Copy link
Collaborator

recrsn commented Jun 1, 2020

This probably happened while improperly applying a pathc from OpenBSD bcrypt sources.

Tests weren't so robust I guess.

@recrsn recrsn merged commit d9e54b4 into kelektiv:master Jun 1, 2020
@techhead techhead deleted the 2b_overflow branch June 1, 2020 19:43
fast-facts pushed a commit to fast-facts/node.bcrypt.js that referenced this pull request Jun 17, 2022
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.

Some compatibility issue with emoji
2 participants