mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Corrected virus scanning of LZMA files.
This commit is contained in:
@@ -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>
|
2017-05-21 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* Context.cs:
|
* Context.cs:
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ namespace osrepodbmgr.Core
|
|||||||
byte[] properties = new byte[5];
|
byte[] properties = new byte[5];
|
||||||
inFs.Read(properties, 0, 5);
|
inFs.Read(properties, 0, 5);
|
||||||
inFs.Seek(8, SeekOrigin.Current);
|
inFs.Seek(8, SeekOrigin.Current);
|
||||||
zStream = new LzmaStream(properties, inFs);
|
zStream = new LzmaStream(properties, inFs, inFs.Length - 13, file.Length);
|
||||||
|
|
||||||
if(UpdateProgress != null)
|
if(UpdateProgress != null)
|
||||||
UpdateProgress("Uncompressing file...", null, 0, 0);
|
UpdateProgress("Uncompressing file...", null, 0, 0);
|
||||||
@@ -209,7 +209,8 @@ namespace osrepodbmgr.Core
|
|||||||
byte[] properties = new byte[5];
|
byte[] properties = new byte[5];
|
||||||
inFs.Read(properties, 0, 5);
|
inFs.Read(properties, 0, 5);
|
||||||
inFs.Seek(8, SeekOrigin.Current);
|
inFs.Seek(8, SeekOrigin.Current);
|
||||||
zStream = new LzmaStream(properties, inFs);
|
zStream = new LzmaStream(properties, inFs, inFs.Length - 13, file.Length);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ namespace osrepodbmgr.Core
|
|||||||
byte[] properties = new byte[5];
|
byte[] properties = new byte[5];
|
||||||
inFs.Read(properties, 0, 5);
|
inFs.Read(properties, 0, 5);
|
||||||
inFs.Seek(8, SeekOrigin.Current);
|
inFs.Seek(8, SeekOrigin.Current);
|
||||||
zStream = new LzmaStream(properties, inFs);
|
zStream = new LzmaStream(properties, inFs, inFs.Length - 13, file.Length);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user