1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-02 10:51:16 +00:00

Fix sec_etc overflow

This commit is contained in:
Gabriele Gristina 2016-12-04 15:54:34 +01:00
parent a6861bb3c8
commit cadd3d24ea

View File

@ -923,12 +923,10 @@ char *status_get_time_estimated_absolute (const hashcat_ctx_t *hashcat_ctx)
}
// we need this check to avoid integer overflow
#if defined (_WIN)
if (sec_etc > 100000000)
{
sec_etc = 100000000;
}
#endif
time_t now;