Fix 17251: avoid integer overflow in test_crypto_slow

This commit is contained in:
Nick Mathewson
2015-10-06 08:58:03 -04:00
parent d4212d581a
commit f7ce93d979
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ test_libscrypt_eq_openssl(void *arg)
memset(buf2,0,64);
N = 1048576;
maxmem = 2 * 1024 * 1024 * 1024; // 2 GB
maxmem = 2 * 1024 * 1024 * (uint64_t)1024; // 2 GB
libscrypt_retval =
libscrypt_scrypt((const uint8_t *)"pleaseletmein",