-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
crypto: State not recovered after an exception is thrown #4879
Comments
@jiripospisil this should have been fixed in v4.2.5. Mind giving that one a try to confirm? |
ah, nevermind. Didn't see the /cc @indutny ? |
I'll make sure this lands |
I've gone ahead and landed that commit on v4.x-staging. |
Thank you guys for looking into it 👍 |
@thealphanerd There's a new LTS release but the issue doesn't seem to be resolved. Was the fix included in the 4.3.0 version? https://gist.github.com/jiripospisil/5d52e1404e870203c794 |
/ping @evanlucas @bnoordhuis |
@jiripospisil The last LTS release was a security release. The fix for this issue is scheduled for tomorrow's bug fix release. |
While upgrading one of our applications to Node.js 4.2.6 (from 4.2.3) I bumped into an issue with the crypto module. In the tests, we supply an invalid key into the
createCipheriv
function and it barks as expected.However, when running the same code again later in the tests, this time with a correct key, it still doesn't work and an exception is thrown. It weird thing is that the error comes from a different crypto function (
createHash
). I assume some internal state is not being cleared.The code works on Node.js 4.2.3 and fails on 4.2.4-6. It's still entirely possible that we're doing something wrong. Any suggestions are welcomed.
https://gist.github.com/jiripospisil/70450ba715a004a11623
The text was updated successfully, but these errors were encountered: