You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
487 B

  1. diff --git a/src/node_crypto.cc b/src/node_crypto.cc
  2. index 972b1e4..7c0f65a 100644
  3. --- a/src/node_crypto.cc
  4. +++ b/src/node_crypto.cc
  5. @@ -5623,7 +5623,7 @@ void PBKDF2(const FunctionCallbackInfo<Value>& args) {
  6. }
  7. raw_keylen = args[3]->NumberValue();
  8. - if (raw_keylen < 0.0 || std::isnan(raw_keylen) || std::isinf(raw_keylen) ||
  9. + if (raw_keylen < 0.0 || isnan(raw_keylen) || isinf(raw_keylen) ||
  10. raw_keylen > INT_MAX) {
  11. type_error = "Bad key length";
  12. goto err;