-
Notifications
You must be signed in to change notification settings - Fork 16k
Electron 1.8.x crash with request module #11457
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
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
This crash happened when Node's |
Test case: const crypto = require('crypto')
const data = 'lG9E+/g4JmRmedDAnihtBD4Dfaha/GFOjd+xUOQI05UtfVX3DjUXvrS98p7kZQwY3LNhdiFo7MY5rGft8yBuDhKuNNag9vRx/44IuClDhdQ='
const key = 'q90K9yBqhWZnAMCMTOJfPQ=='
for (let i = 0; i < 10000; ++i) {
let iv = Buffer.from('0'.repeat(32), 'hex')
let input = Buffer.from(data, 'base64')
let decipher = crypto.createDecipheriv('aes-128-cbc', Buffer.from(key, 'base64'), iv)
let ciphertext = Buffer.concat([decipher.update(input), decipher.final()])
} |
@zcbenz Is it fixed already? Shouldn't it be closed then? |
@zcbenz Why closed? The crypto module is just a saved plan. The point is that it does't exists in main process. |
Expected behavior
Requests should resolve and no crash should occur.
Actual behavior
Linux:
macOS:
How to reproduce
Appears to be the same underlying bug as in #11358
This bug does not appear for me on 1.7.9
The text was updated successfully, but these errors were encountered: