Corrected virus scanning of LZMA files.

This commit is contained in:
2017-05-21 14:25:10 +01:00
parent c8c8724d33
commit 6c492cfd81
3 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2017-05-21 Natalia Portillo <claunia@claunia.com>
* Workers/Clamd.cs:
* Workers/VirusTotal.cs:
Corrected virus scanning of LZMA files.
2017-05-21 Natalia Portillo <claunia@claunia.com>
* Context.cs:

View File

@@ -142,7 +142,7 @@ namespace osrepodbmgr.Core
byte[] properties = new byte[5];
inFs.Read(properties, 0, 5);
inFs.Seek(8, SeekOrigin.Current);
zStream = new LzmaStream(properties, inFs);
zStream = new LzmaStream(properties, inFs, inFs.Length - 13, file.Length);
if(UpdateProgress != null)
UpdateProgress("Uncompressing file...", null, 0, 0);
@@ -209,7 +209,8 @@ namespace osrepodbmgr.Core
byte[] properties = new byte[5];
inFs.Read(properties, 0, 5);
inFs.Seek(8, SeekOrigin.Current);
zStream = new LzmaStream(properties, inFs);
zStream = new LzmaStream(properties, inFs, inFs.Length - 13, file.Length);
break;
}

View File

@@ -239,7 +239,7 @@ namespace osrepodbmgr.Core
byte[] properties = new byte[5];
inFs.Read(properties, 0, 5);
inFs.Seek(8, SeekOrigin.Current);
zStream = new LzmaStream(properties, inFs);
zStream = new LzmaStream(properties, inFs, inFs.Length - 13, file.Length);
break;
}