diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-06 08:58:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-06 08:58:03 -0400 |
commit | f7ce93d97949fe0897bf8f1b2e95da73c620ff8a (patch) | |
tree | 9096fcf9f04f9f7390e7f94d42d802c3472c7deb /src/test/test_crypto_slow.c | |
parent | d4212d581ae418dcb91eac6343359bb7deb90c0a (diff) | |
download | tor-f7ce93d97949fe0897bf8f1b2e95da73c620ff8a.tar.gz tor-f7ce93d97949fe0897bf8f1b2e95da73c620ff8a.zip |
Fix 17251: avoid integer overflow in test_crypto_slow
Diffstat (limited to 'src/test/test_crypto_slow.c')
-rw-r--r-- | src/test/test_crypto_slow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_crypto_slow.c b/src/test/test_crypto_slow.c index d0f50f83b9..853a08d886 100644 --- a/src/test/test_crypto_slow.c +++ b/src/test/test_crypto_slow.c @@ -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", |