Commit 44589b5d authored by Pauli's avatar Pauli
Browse files

Add explanatory comment about fitting into a size_t.

parent 6ffaf15d
Loading
Loading
Loading
Loading
+2
Changes for crypto/evp/pbe_scrypt.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -207,6 +207,8 @@ int EVP_PBE_scrypt(const char *pass, size_t passlen,

    if (maxmem == 0)
        maxmem = SCRYPT_MAX_MEM;

    /* Check that the maximum memory doesn't exceed a size_t limits */
    if (maxmem > SIZE_MAX)
        maxmem = SIZE_MAX;