New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #227 - Opening 7zip archive with invalid win32 date #303

Merged
merged 3 commits into from Sep 19, 2017
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings

Always

Just for now

@@ -182,7 +182,7 @@ private DateTime TranslateTime(long time)
private DateTime? TranslateTime(long? time)
{
if (time.HasValue)
if (time.HasValue && time.Value >= 0 && time.Value <= 2650467743999999999) //maximum Windows file time 31.12.9999
{
return TranslateTime(time.Value);
}
@@ -1588,4 +1588,4 @@ public int GetFileIndex(ArchiveDatabase db, CFileItem item)
#endregion
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.