Skip to content

Commit

Permalink
Fixed version detection for some installers
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
Bioruebe committed Aug 31, 2020
1 parent cd5e5e5 commit 117e661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.txt
@@ -1,3 +1,7 @@
2.1.1
Fixed version detection for some installers
Updated BioLib to 2.0.0

2.1.0
Added 'Overwrite file?' prompt if output file already exists
Moved common functions to separate dll
Expand Down
2 changes: 1 addition & 1 deletion cicdec/FileInfo.cs
Expand Up @@ -55,7 +55,7 @@ public class FileInfo {
}

public bool IsValid(long fileStreamLength) {
if (offset > fileStreamLength || (compressedSize > 0 && uncompressedSize / compressedSize > 1000) || index > 1000000000) return false;
if (offset > fileStreamLength || (compressedSize == 0 && uncompressedSize > 3000000000) || index > 1000000000) return false;
return true;
}

Expand Down

0 comments on commit 117e661

Please sign in to comment.