mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-11 09:20:55 +02:00
Code review feedback
This commit is contained in:
@@ -15486,7 +15486,7 @@ int wolfSSL_BUF_MEM_resize(WOLFSSL_BUF_MEM* buf, size_t len)
|
||||
|
||||
/* verify provided arguments. The return value is an int, so reject any
|
||||
* len that cannot be represented as a positive int. */
|
||||
if (buf == NULL || len == 0 || len > (size_t)WOLFSSL_MAX_32BIT) {
|
||||
if (buf == NULL || len == 0 || len > (size_t)WC_MAX_SINT_OF(int)) {
|
||||
return 0; /* BAD_FUNC_ARG; */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user