| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3e70b7d commit 94605b1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -479,12 +479,8 @@ std::shared_ptr<KeyObjectData> ImportJWKSecretKey( | |||
| 479 | 479 | return std::shared_ptr<KeyObjectData>(); | |
| 480 | 480 | } | |
| 481 | 481 | ||
| 482 | + static_assert(String::kMaxLength <= INT_MAX); | ||
| 482 | 483 | ByteSource key_data = ByteSource::FromEncodedString(env, key.As<String>()); | |
| 483 | - if (key_data.size() > INT_MAX) { | ||
| 484 | - THROW_ERR_CRYPTO_INVALID_KEYLEN(env); | ||
| 485 | - return std::shared_ptr<KeyObjectData>(); | ||
| 486 | - } | ||
| 487 | - | ||
| 488 | 484 | return KeyObjectData::CreateSecret(std::move(key_data)); | |
| 489 | 485 | } | |
| 490 | 486 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments