Merge pull request #910 from matrix/ctime_overflow
Fix ctime_r/sec_etc overflow
This commit is contained in:
commit
2039e2c06e
@ -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…
x
Reference in New Issue
Block a user