Closed
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