mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-11-18 14:00:58 +03:00
There were preprocessor directives in pk.c and pk_wrap.c that cheked whether the bit length of size_t was greater than that of unsigned int. However, the check relied on the MBEDTLS_HAVE_INT64 macro being defined which is not directly related to size_t. This might result in errors in some platforms. This change modifies the check to use the macros SIZE_MAX and UINT_MAX instead making the code more robust.
14 KiB
14 KiB