1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 20:39:17 +00:00

Use type independant __builtin_mul_overflow()

This commit is contained in:
jsteube 2017-02-22 12:36:05 +01:00
parent 62bc8689b7
commit 080131c86e

View File

@ -817,7 +817,7 @@ static int sp_get_sum (u32 start, u32 stop, cs_t *root_css_buf, u64 *result)
{
u64 t;
if (__builtin_umull_overflow (sum, root_css_buf[i].cs_len, &t) == true) return -1;
if (__builtin_mul_overflow (sum, root_css_buf[i].cs_len, &t) == true) return -1;
sum *= root_css_buf[i].cs_len;
}