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:
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
|
||||
#if defined (_WIN)
|
||||
if (sec_etc > 100000000)
|
||||
{
|
||||
sec_etc = 100000000;
|
||||
}
|
||||
#endif
|
||||
|
||||
time_t now;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user