Skip to content

crypto: reject non-int32 values in DiffieHellman()

Rodrigo Muino Tomonari requested to merge github/fork/bnoordhuis/fix32738 into master

The JS code accepted any value where typeof sizeOrKey === 'number' was true but the C++ code checked that args[0]->IsInt32() and subsequently aborted.

Fixes: https://github.com/nodejs/node/issues/32738 https://github.com/nodejs/node/issues/32748

Merge request reports

Loading