diff options
author | Tobias Nießen <tniessen@tnie.de> | 2022-03-08 18:33:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 17:33:38 +0000 |
commit | e8697cfe3864082a25f229e61c44f22c8e6dd502 (patch) | |
tree | 99444c0e01222ac8d7025a59f716c4c4f751704c /deps/npm/man/man1/npm-hook.1 | |
parent | 9412441da01d14167a42557e8fe7e42cfc4309a2 (diff) | |
download | node-new-e8697cfe3864082a25f229e61c44f22c8e6dd502.tar.gz |
crypto: improve prime size argument validation
The current validation in JavaScript is insufficient and also produces
an incorrect error message, restricting the size parameter to 32-bit
values, whereas the C++ backend restricts the size parameter to the
positive range of an int.
This change tightens the validation in JavaScript and adapts the error
message accordingly, making the validation in C++ superfluous.
Refs: https://github.com/nodejs/node/pull/42207
PR-URL: https://github.com/nodejs/node/pull/42234
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/npm/man/man1/npm-hook.1')
0 files changed, 0 insertions, 0 deletions