diff --git a/src/SharpCompress/Common/SevenZip/ArchiveReader.cs b/src/SharpCompress/Common/SevenZip/ArchiveReader.cs index 64a18b8b..6f83395f 100644 --- a/src/SharpCompress/Common/SevenZip/ArchiveReader.cs +++ b/src/SharpCompress/Common/SevenZip/ArchiveReader.cs @@ -182,7 +182,7 @@ namespace SharpCompress.Common.SevenZip 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 @@ namespace SharpCompress.Common.SevenZip #endregion } -} \ No newline at end of file +}