mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Fixed CID 576268
This commit is contained in:
@@ -48284,7 +48284,7 @@ int wolfSSL_CTX_set1_curves_list(WOLFSSL_CTX* ctx, const char* names)
|
||||
#endif
|
||||
}
|
||||
|
||||
if (curve > (sizeof(word32) * WOLFSSL_BIT_SIZE)) {
|
||||
if (curve >= (sizeof(word32) * WOLFSSL_BIT_SIZE)) {
|
||||
/* shift left more than size of ctx->disabledCurves causes static
|
||||
* analysis report */
|
||||
WOLFSSL_MSG("curve value is too large for upcoming shift");
|
||||
|
Reference in New Issue
Block a user