mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-08 21:52:51 +00:00
Fix sec_etc overflow
This commit is contained in:
parent
a6861bb3c8
commit
cadd3d24ea
@ -923,12 +923,10 @@ char *status_get_time_estimated_absolute (const hashcat_ctx_t *hashcat_ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we need this check to avoid integer overflow
|
// we need this check to avoid integer overflow
|
||||||
#if defined (_WIN)
|
|
||||||
if (sec_etc > 100000000)
|
if (sec_etc > 100000000)
|
||||||
{
|
{
|
||||||
sec_etc = 100000000;
|
sec_etc = 100000000;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
time_t now;
|
time_t now;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user