Skip to content
Snippets Groups Projects
Commit f7ce93d9 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix 17251: avoid integer overflow in test_crypto_slow

parent d4212d58
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes (compilation):
- Fix an integer overflow warning in test_crypto_slow.c.
Fixes bug 17251; bugfix on 0.2.7.2-alpha.
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment