Fixed CID 576268

This commit is contained in:
David Kubasek
2021-03-05 10:35:14 +01:00
parent d510c270cd
commit ad70112fd8

View File

@@ -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");