1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-24 00:51:05 +00:00

Merge pull request #910 from matrix/ctime_overflow

Fix ctime_r/sec_etc overflow
This commit is contained in:
Jens Steube 2016-12-04 16:01:02 +01:00 committed by GitHub
commit 2039e2c06e

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;