-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.
Description
Version
v18.12.0
Platform
No response
Subsystem
crypto
What steps will reproduce the bug?
try {
require('crypto')
.createCipheriv('aes-128-gcm', Buffer.alloc(16), Buffer.alloc(12))
.update(Buffer.allocUnsafeSlow(2**31-1));
}
catch (error) {
console.error(error);
}
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior?
Throw a normal catchable error like size>=2**31
do, or work right like size<=2**31
.
What do you see instead?
Only size===2**31-1
will cause an uncatchable process crash.
Additional information
No response
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.