diff --git a/BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs b/BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs index 0f83e53b..9b72ae31 100644 --- a/BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs +++ b/BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class AACSMediaKeyBlockTests { private static readonly SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper - = new(new SabreTools.Models.AACS.MediaKeyBlock(), new MemoryStream()); + = new(new SabreTools.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/FileType/BDPlusSVMTests.cs b/BinaryObjectScanner.Test/FileType/BDPlusSVMTests.cs index 79f580a3..c9033ed8 100644 --- a/BinaryObjectScanner.Test/FileType/BDPlusSVMTests.cs +++ b/BinaryObjectScanner.Test/FileType/BDPlusSVMTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class BDPlusSVMTests { private static readonly SabreTools.Serialization.Wrappers.BDPlusSVM wrapper - = new(new SabreTools.Models.BDPlus.SVM(), new MemoryStream()); + = new(new SabreTools.Models.BDPlus.SVM(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/FileType/LinearExecutableTests.cs b/BinaryObjectScanner.Test/FileType/LinearExecutableTests.cs index 60ea92a6..a4878709 100644 --- a/BinaryObjectScanner.Test/FileType/LinearExecutableTests.cs +++ b/BinaryObjectScanner.Test/FileType/LinearExecutableTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class LinearExecutableTests { private static readonly SabreTools.Serialization.Wrappers.LinearExecutable wrapper - = new(new SabreTools.Models.LinearExecutable.Executable(), new MemoryStream()); + = new(new SabreTools.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/FileType/MSDOSTests.cs b/BinaryObjectScanner.Test/FileType/MSDOSTests.cs index c38def30..5bd22c3d 100644 --- a/BinaryObjectScanner.Test/FileType/MSDOSTests.cs +++ b/BinaryObjectScanner.Test/FileType/MSDOSTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class MSDOSTests { private static readonly SabreTools.Serialization.Wrappers.MSDOS wrapper - = new(new SabreTools.Models.MSDOS.Executable(), new MemoryStream()); + = new(new SabreTools.Models.MSDOS.Executable(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/FileType/NewExecutableTests.cs b/BinaryObjectScanner.Test/FileType/NewExecutableTests.cs index b1b2dbd4..cf7bf20d 100644 --- a/BinaryObjectScanner.Test/FileType/NewExecutableTests.cs +++ b/BinaryObjectScanner.Test/FileType/NewExecutableTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class NewExecutableTests { private static readonly SabreTools.Serialization.Wrappers.NewExecutable wrapper - = new(new SabreTools.Models.NewExecutable.Executable(), new MemoryStream()); + = new(new SabreTools.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/FileType/PLJTests.cs b/BinaryObjectScanner.Test/FileType/PLJTests.cs index 6b057a2d..e633d071 100644 --- a/BinaryObjectScanner.Test/FileType/PLJTests.cs +++ b/BinaryObjectScanner.Test/FileType/PLJTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class PLJTests { private static readonly SabreTools.Serialization.Wrappers.PlayJAudioFile wrapper - = new(new SabreTools.Models.PlayJ.AudioFile(), new MemoryStream()); + = new(new SabreTools.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/FileType/PortableExecutableTests.cs b/BinaryObjectScanner.Test/FileType/PortableExecutableTests.cs index 6fe32df5..9cda387c 100644 --- a/BinaryObjectScanner.Test/FileType/PortableExecutableTests.cs +++ b/BinaryObjectScanner.Test/FileType/PortableExecutableTests.cs @@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType public class PortableExecutableTests { private static readonly SabreTools.Serialization.Wrappers.PortableExecutable wrapper - = new(new SabreTools.Models.PortableExecutable.Executable(), new MemoryStream()); + = new(new SabreTools.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024])); [Fact] public void DetectFile_EmptyString_Null() diff --git a/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs b/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs index 8dd7c74e..b7fedf89 100644 --- a/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs +++ b/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.GameEngine { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new RenderWare(); diff --git a/BinaryObjectScanner.Test/Packer/ASPackTests.cs b/BinaryObjectScanner.Test/Packer/ASPackTests.cs index f767f5db..7b339e82 100644 --- a/BinaryObjectScanner.Test/Packer/ASPackTests.cs +++ b/BinaryObjectScanner.Test/Packer/ASPackTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ASPack(); diff --git a/BinaryObjectScanner.Test/Packer/AdvancedInstallerTests.cs b/BinaryObjectScanner.Test/Packer/AdvancedInstallerTests.cs index 7524303b..6c2b9252 100644 --- a/BinaryObjectScanner.Test/Packer/AdvancedInstallerTests.cs +++ b/BinaryObjectScanner.Test/Packer/AdvancedInstallerTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new AdvancedInstaller(); diff --git a/BinaryObjectScanner.Test/Packer/AutoPlayMediaStudioTests.cs b/BinaryObjectScanner.Test/Packer/AutoPlayMediaStudioTests.cs index 845cbeea..7250dd85 100644 --- a/BinaryObjectScanner.Test/Packer/AutoPlayMediaStudioTests.cs +++ b/BinaryObjectScanner.Test/Packer/AutoPlayMediaStudioTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new AutoPlayMediaStudio(); diff --git a/BinaryObjectScanner.Test/Packer/CExeTests.cs b/BinaryObjectScanner.Test/Packer/CExeTests.cs index d35f358a..ba0e1cdf 100644 --- a/BinaryObjectScanner.Test/Packer/CExeTests.cs +++ b/BinaryObjectScanner.Test/Packer/CExeTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CExe(); diff --git a/BinaryObjectScanner.Test/Packer/CrunchTests.cs b/BinaryObjectScanner.Test/Packer/CrunchTests.cs index 6830c08b..f2bfa477 100644 --- a/BinaryObjectScanner.Test/Packer/CrunchTests.cs +++ b/BinaryObjectScanner.Test/Packer/CrunchTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Crunch(); diff --git a/BinaryObjectScanner.Test/Packer/DotFuscatorTests.cs b/BinaryObjectScanner.Test/Packer/DotFuscatorTests.cs index 451eb35e..429a6863 100644 --- a/BinaryObjectScanner.Test/Packer/DotFuscatorTests.cs +++ b/BinaryObjectScanner.Test/Packer/DotFuscatorTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new DotFuscator(); diff --git a/BinaryObjectScanner.Test/Packer/DotNetReactorTests.cs b/BinaryObjectScanner.Test/Packer/DotNetReactorTests.cs index b4e6903f..b5cc72c7 100644 --- a/BinaryObjectScanner.Test/Packer/DotNetReactorTests.cs +++ b/BinaryObjectScanner.Test/Packer/DotNetReactorTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new DotNetReactor(); diff --git a/BinaryObjectScanner.Test/Packer/EXEStealthTests.cs b/BinaryObjectScanner.Test/Packer/EXEStealthTests.cs index f13cf738..4fb6a238 100644 --- a/BinaryObjectScanner.Test/Packer/EXEStealthTests.cs +++ b/BinaryObjectScanner.Test/Packer/EXEStealthTests.cs @@ -22,7 +22,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new EXEStealth(); diff --git a/BinaryObjectScanner.Test/Packer/EmbeddedFileTests.cs b/BinaryObjectScanner.Test/Packer/EmbeddedFileTests.cs index d6ce9f9d..871821be 100644 --- a/BinaryObjectScanner.Test/Packer/EmbeddedFileTests.cs +++ b/BinaryObjectScanner.Test/Packer/EmbeddedFileTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new EmbeddedFile(); diff --git a/BinaryObjectScanner.Test/Packer/GenteeInstallerTests.cs b/BinaryObjectScanner.Test/Packer/GenteeInstallerTests.cs index f504a34e..61fd2824 100644 --- a/BinaryObjectScanner.Test/Packer/GenteeInstallerTests.cs +++ b/BinaryObjectScanner.Test/Packer/GenteeInstallerTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new GenteeInstaller(); diff --git a/BinaryObjectScanner.Test/Packer/HyperTechCrackProofTests.cs b/BinaryObjectScanner.Test/Packer/HyperTechCrackProofTests.cs index 869e1576..f18c9a56 100644 --- a/BinaryObjectScanner.Test/Packer/HyperTechCrackProofTests.cs +++ b/BinaryObjectScanner.Test/Packer/HyperTechCrackProofTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new HyperTechCrackProof(); diff --git a/BinaryObjectScanner.Test/Packer/InnoSetupTests.cs b/BinaryObjectScanner.Test/Packer/InnoSetupTests.cs index b5f96c25..7412a492 100644 --- a/BinaryObjectScanner.Test/Packer/InnoSetupTests.cs +++ b/BinaryObjectScanner.Test/Packer/InnoSetupTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.NewExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source); var checker = new InnoSetup(); @@ -24,7 +24,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new InnoSetup(); diff --git a/BinaryObjectScanner.Test/Packer/InstallAnywhereTests.cs b/BinaryObjectScanner.Test/Packer/InstallAnywhereTests.cs index b0fbd0d0..f9b35152 100644 --- a/BinaryObjectScanner.Test/Packer/InstallAnywhereTests.cs +++ b/BinaryObjectScanner.Test/Packer/InstallAnywhereTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new InstallAnywhere(); diff --git a/BinaryObjectScanner.Test/Packer/InstallerVISETests.cs b/BinaryObjectScanner.Test/Packer/InstallerVISETests.cs index f0d65336..1bd4e52e 100644 --- a/BinaryObjectScanner.Test/Packer/InstallerVISETests.cs +++ b/BinaryObjectScanner.Test/Packer/InstallerVISETests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new InstallerVISE(); diff --git a/BinaryObjectScanner.Test/Packer/IntelInstallationFrameworkTests.cs b/BinaryObjectScanner.Test/Packer/IntelInstallationFrameworkTests.cs index f57b18e4..946fdb03 100644 --- a/BinaryObjectScanner.Test/Packer/IntelInstallationFrameworkTests.cs +++ b/BinaryObjectScanner.Test/Packer/IntelInstallationFrameworkTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new IntelInstallationFramework(); diff --git a/BinaryObjectScanner.Test/Packer/MicrosoftCABSFXTests.cs b/BinaryObjectScanner.Test/Packer/MicrosoftCABSFXTests.cs index 9c594a03..b11dce4d 100644 --- a/BinaryObjectScanner.Test/Packer/MicrosoftCABSFXTests.cs +++ b/BinaryObjectScanner.Test/Packer/MicrosoftCABSFXTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new MicrosoftCABSFX(); diff --git a/BinaryObjectScanner.Test/Packer/NSISTests.cs b/BinaryObjectScanner.Test/Packer/NSISTests.cs index dcce2d55..c4a2bccc 100644 --- a/BinaryObjectScanner.Test/Packer/NSISTests.cs +++ b/BinaryObjectScanner.Test/Packer/NSISTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new NSIS(); diff --git a/BinaryObjectScanner.Test/Packer/NeoLiteTests.cs b/BinaryObjectScanner.Test/Packer/NeoLiteTests.cs index 568a49c2..b9f62981 100644 --- a/BinaryObjectScanner.Test/Packer/NeoLiteTests.cs +++ b/BinaryObjectScanner.Test/Packer/NeoLiteTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new NeoLite(); diff --git a/BinaryObjectScanner.Test/Packer/PECompactTests.cs b/BinaryObjectScanner.Test/Packer/PECompactTests.cs index 1948136e..1f6f49a9 100644 --- a/BinaryObjectScanner.Test/Packer/PECompactTests.cs +++ b/BinaryObjectScanner.Test/Packer/PECompactTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new PECompact(); diff --git a/BinaryObjectScanner.Test/Packer/PEtiteTests.cs b/BinaryObjectScanner.Test/Packer/PEtiteTests.cs index 3ecca3d9..5065e76f 100644 --- a/BinaryObjectScanner.Test/Packer/PEtiteTests.cs +++ b/BinaryObjectScanner.Test/Packer/PEtiteTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new PEtite(); diff --git a/BinaryObjectScanner.Test/Packer/SetupFactoryTests.cs b/BinaryObjectScanner.Test/Packer/SetupFactoryTests.cs index 8844dba2..f3f9af52 100644 --- a/BinaryObjectScanner.Test/Packer/SetupFactoryTests.cs +++ b/BinaryObjectScanner.Test/Packer/SetupFactoryTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SetupFactory(); diff --git a/BinaryObjectScanner.Test/Packer/SevenZipSFXTests.cs b/BinaryObjectScanner.Test/Packer/SevenZipSFXTests.cs index 5f6ca145..b11c49d1 100644 --- a/BinaryObjectScanner.Test/Packer/SevenZipSFXTests.cs +++ b/BinaryObjectScanner.Test/Packer/SevenZipSFXTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SevenZipSFX(); diff --git a/BinaryObjectScanner.Test/Packer/ShrinkerTests.cs b/BinaryObjectScanner.Test/Packer/ShrinkerTests.cs index df9ef250..03d8770a 100644 --- a/BinaryObjectScanner.Test/Packer/ShrinkerTests.cs +++ b/BinaryObjectScanner.Test/Packer/ShrinkerTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Shrinker(); diff --git a/BinaryObjectScanner.Test/Packer/UPXTests.cs b/BinaryObjectScanner.Test/Packer/UPXTests.cs index 97040f5f..58836ca2 100644 --- a/BinaryObjectScanner.Test/Packer/UPXTests.cs +++ b/BinaryObjectScanner.Test/Packer/UPXTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new UPX(); diff --git a/BinaryObjectScanner.Test/Packer/WinRARSFXTests.cs b/BinaryObjectScanner.Test/Packer/WinRARSFXTests.cs index 1add32bb..e0cbaa36 100644 --- a/BinaryObjectScanner.Test/Packer/WinRARSFXTests.cs +++ b/BinaryObjectScanner.Test/Packer/WinRARSFXTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new WinRARSFX(); diff --git a/BinaryObjectScanner.Test/Packer/WinZipSFXTests.cs b/BinaryObjectScanner.Test/Packer/WinZipSFXTests.cs index 6196686c..84cbf5c5 100644 --- a/BinaryObjectScanner.Test/Packer/WinZipSFXTests.cs +++ b/BinaryObjectScanner.Test/Packer/WinZipSFXTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.NewExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source); var checker = new WinZipSFX(); @@ -24,7 +24,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new WinZipSFX(); diff --git a/BinaryObjectScanner.Test/Packer/WiseInstallerTests.cs b/BinaryObjectScanner.Test/Packer/WiseInstallerTests.cs index d8c4234d..268bb9f6 100644 --- a/BinaryObjectScanner.Test/Packer/WiseInstallerTests.cs +++ b/BinaryObjectScanner.Test/Packer/WiseInstallerTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.NewExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source); var checker = new WiseInstaller(); @@ -24,7 +24,7 @@ namespace BinaryObjectScanner.Test.Packer { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new WiseInstaller(); diff --git a/BinaryObjectScanner.Test/Protection/ActiveMARKTests.cs b/BinaryObjectScanner.Test/Protection/ActiveMARKTests.cs index 7c271142..1cf2fa68 100644 --- a/BinaryObjectScanner.Test/Protection/ActiveMARKTests.cs +++ b/BinaryObjectScanner.Test/Protection/ActiveMARKTests.cs @@ -22,7 +22,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ActiveMARK(); diff --git a/BinaryObjectScanner.Test/Protection/AegiSoftTests.cs b/BinaryObjectScanner.Test/Protection/AegiSoftTests.cs index f2640d37..faf35b4f 100644 --- a/BinaryObjectScanner.Test/Protection/AegiSoftTests.cs +++ b/BinaryObjectScanner.Test/Protection/AegiSoftTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new AegiSoft(); diff --git a/BinaryObjectScanner.Test/Protection/AlphaROMTests.cs b/BinaryObjectScanner.Test/Protection/AlphaROMTests.cs index 2e2bc142..3cd578b2 100644 --- a/BinaryObjectScanner.Test/Protection/AlphaROMTests.cs +++ b/BinaryObjectScanner.Test/Protection/AlphaROMTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new AlphaROM(); diff --git a/BinaryObjectScanner.Test/Protection/ArmadilloTests.cs b/BinaryObjectScanner.Test/Protection/ArmadilloTests.cs index eed5b8de..db197d4c 100644 --- a/BinaryObjectScanner.Test/Protection/ArmadilloTests.cs +++ b/BinaryObjectScanner.Test/Protection/ArmadilloTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Armadillo(); diff --git a/BinaryObjectScanner.Test/Protection/ByteShieldTests.cs b/BinaryObjectScanner.Test/Protection/ByteShieldTests.cs index c16a5fb6..378c27be 100644 --- a/BinaryObjectScanner.Test/Protection/ByteShieldTests.cs +++ b/BinaryObjectScanner.Test/Protection/ByteShieldTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ByteShield(); diff --git a/BinaryObjectScanner.Test/Protection/CDCheckTests.cs b/BinaryObjectScanner.Test/Protection/CDCheckTests.cs index 30f8540a..f055b50f 100644 --- a/BinaryObjectScanner.Test/Protection/CDCheckTests.cs +++ b/BinaryObjectScanner.Test/Protection/CDCheckTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CDCheck(); diff --git a/BinaryObjectScanner.Test/Protection/CDDVDCopsTests.cs b/BinaryObjectScanner.Test/Protection/CDDVDCopsTests.cs index 02276da7..dee491ae 100644 --- a/BinaryObjectScanner.Test/Protection/CDDVDCopsTests.cs +++ b/BinaryObjectScanner.Test/Protection/CDDVDCopsTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.NewExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source); var checker = new CDDVDCops(); @@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CDDVDCops(); diff --git a/BinaryObjectScanner.Test/Protection/CDGuardTests.cs b/BinaryObjectScanner.Test/Protection/CDGuardTests.cs index 12094388..f0c06e9f 100644 --- a/BinaryObjectScanner.Test/Protection/CDGuardTests.cs +++ b/BinaryObjectScanner.Test/Protection/CDGuardTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CDGuard(); diff --git a/BinaryObjectScanner.Test/Protection/CDKeyTests.cs b/BinaryObjectScanner.Test/Protection/CDKeyTests.cs index 3430aa4a..b976906d 100644 --- a/BinaryObjectScanner.Test/Protection/CDKeyTests.cs +++ b/BinaryObjectScanner.Test/Protection/CDKeyTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CDKey(); diff --git a/BinaryObjectScanner.Test/Protection/CDLockTests.cs b/BinaryObjectScanner.Test/Protection/CDLockTests.cs index 8dcaa3ab..c916d2b0 100644 --- a/BinaryObjectScanner.Test/Protection/CDLockTests.cs +++ b/BinaryObjectScanner.Test/Protection/CDLockTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CDLock(); diff --git a/BinaryObjectScanner.Test/Protection/CDSHiELDSETests.cs b/BinaryObjectScanner.Test/Protection/CDSHiELDSETests.cs index 424c32e6..34616464 100644 --- a/BinaryObjectScanner.Test/Protection/CDSHiELDSETests.cs +++ b/BinaryObjectScanner.Test/Protection/CDSHiELDSETests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CDSHiELDSE(); diff --git a/BinaryObjectScanner.Test/Protection/CenegaProtectDVDTests.cs b/BinaryObjectScanner.Test/Protection/CenegaProtectDVDTests.cs index a8858ca8..f86f67d1 100644 --- a/BinaryObjectScanner.Test/Protection/CenegaProtectDVDTests.cs +++ b/BinaryObjectScanner.Test/Protection/CenegaProtectDVDTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CenegaProtectDVD(); diff --git a/BinaryObjectScanner.Test/Protection/ChannelwareTests.cs b/BinaryObjectScanner.Test/Protection/ChannelwareTests.cs index 2d49dd50..61ea70e5 100644 --- a/BinaryObjectScanner.Test/Protection/ChannelwareTests.cs +++ b/BinaryObjectScanner.Test/Protection/ChannelwareTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Channelware(); diff --git a/BinaryObjectScanner.Test/Protection/ChosenBytesCodeLockTests.cs b/BinaryObjectScanner.Test/Protection/ChosenBytesCodeLockTests.cs index ad504d5a..fcedd928 100644 --- a/BinaryObjectScanner.Test/Protection/ChosenBytesCodeLockTests.cs +++ b/BinaryObjectScanner.Test/Protection/ChosenBytesCodeLockTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ChosenBytesCodeLock(); diff --git a/BinaryObjectScanner.Test/Protection/CopyKillerTests.cs b/BinaryObjectScanner.Test/Protection/CopyKillerTests.cs index c198033d..325911b2 100644 --- a/BinaryObjectScanner.Test/Protection/CopyKillerTests.cs +++ b/BinaryObjectScanner.Test/Protection/CopyKillerTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CopyKiller(); diff --git a/BinaryObjectScanner.Test/Protection/CopyLokTests.cs b/BinaryObjectScanner.Test/Protection/CopyLokTests.cs index c0333389..e0d63787 100644 --- a/BinaryObjectScanner.Test/Protection/CopyLokTests.cs +++ b/BinaryObjectScanner.Test/Protection/CopyLokTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CopyLok(); diff --git a/BinaryObjectScanner.Test/Protection/CopyXTests.cs b/BinaryObjectScanner.Test/Protection/CopyXTests.cs index 0386c653..22b625fb 100644 --- a/BinaryObjectScanner.Test/Protection/CopyXTests.cs +++ b/BinaryObjectScanner.Test/Protection/CopyXTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CopyX(); diff --git a/BinaryObjectScanner.Test/Protection/CrypKeyTests.cs b/BinaryObjectScanner.Test/Protection/CrypKeyTests.cs index 752d48a7..d96bec0c 100644 --- a/BinaryObjectScanner.Test/Protection/CrypKeyTests.cs +++ b/BinaryObjectScanner.Test/Protection/CrypKeyTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new CrypKey(); diff --git a/BinaryObjectScanner.Test/Protection/CuckoTests.cs b/BinaryObjectScanner.Test/Protection/CuckoTests.cs index 6b826521..2d8c9058 100644 --- a/BinaryObjectScanner.Test/Protection/CuckoTests.cs +++ b/BinaryObjectScanner.Test/Protection/CuckoTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Cucko(); diff --git a/BinaryObjectScanner.Test/Protection/DenuvoTests.cs b/BinaryObjectScanner.Test/Protection/DenuvoTests.cs index 2f7930ab..4e58a4bc 100644 --- a/BinaryObjectScanner.Test/Protection/DenuvoTests.cs +++ b/BinaryObjectScanner.Test/Protection/DenuvoTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Denuvo(); diff --git a/BinaryObjectScanner.Test/Protection/DigiGuardTests.cs b/BinaryObjectScanner.Test/Protection/DigiGuardTests.cs index 7891d664..22e29e7e 100644 --- a/BinaryObjectScanner.Test/Protection/DigiGuardTests.cs +++ b/BinaryObjectScanner.Test/Protection/DigiGuardTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new DigiGuard(); diff --git a/BinaryObjectScanner.Test/Protection/DiscGuardTests.cs b/BinaryObjectScanner.Test/Protection/DiscGuardTests.cs index bee9c99d..e26b8207 100644 --- a/BinaryObjectScanner.Test/Protection/DiscGuardTests.cs +++ b/BinaryObjectScanner.Test/Protection/DiscGuardTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new DiscGuard(); diff --git a/BinaryObjectScanner.Test/Protection/EAAntiCheatTests.cs b/BinaryObjectScanner.Test/Protection/EAAntiCheatTests.cs index 8180c521..662b1c34 100644 --- a/BinaryObjectScanner.Test/Protection/EAAntiCheatTests.cs +++ b/BinaryObjectScanner.Test/Protection/EAAntiCheatTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new EAAntiCheat(); diff --git a/BinaryObjectScanner.Test/Protection/EasyAntiCheatTests.cs b/BinaryObjectScanner.Test/Protection/EasyAntiCheatTests.cs index 7239d30d..bce9159f 100644 --- a/BinaryObjectScanner.Test/Protection/EasyAntiCheatTests.cs +++ b/BinaryObjectScanner.Test/Protection/EasyAntiCheatTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new EasyAntiCheat(); diff --git a/BinaryObjectScanner.Test/Protection/ElectronicArtsTests.cs b/BinaryObjectScanner.Test/Protection/ElectronicArtsTests.cs index be58c16d..31d77266 100644 --- a/BinaryObjectScanner.Test/Protection/ElectronicArtsTests.cs +++ b/BinaryObjectScanner.Test/Protection/ElectronicArtsTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ElectronicArts(); diff --git a/BinaryObjectScanner.Test/Protection/Engine32Tests.cs b/BinaryObjectScanner.Test/Protection/Engine32Tests.cs index 93a72643..7587830b 100644 --- a/BinaryObjectScanner.Test/Protection/Engine32Tests.cs +++ b/BinaryObjectScanner.Test/Protection/Engine32Tests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Engine32(); diff --git a/BinaryObjectScanner.Test/Protection/GFWLTests.cs b/BinaryObjectScanner.Test/Protection/GFWLTests.cs index dc9f51c7..59449ec7 100644 --- a/BinaryObjectScanner.Test/Protection/GFWLTests.cs +++ b/BinaryObjectScanner.Test/Protection/GFWLTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new GFWL(); diff --git a/BinaryObjectScanner.Test/Protection/GefestTests.cs b/BinaryObjectScanner.Test/Protection/GefestTests.cs index 8532d5eb..6e6d2e2f 100644 --- a/BinaryObjectScanner.Test/Protection/GefestTests.cs +++ b/BinaryObjectScanner.Test/Protection/GefestTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Gefest(); diff --git a/BinaryObjectScanner.Test/Protection/HexalockAutoLockTests.cs b/BinaryObjectScanner.Test/Protection/HexalockAutoLockTests.cs index a6a27e1d..3b182916 100644 --- a/BinaryObjectScanner.Test/Protection/HexalockAutoLockTests.cs +++ b/BinaryObjectScanner.Test/Protection/HexalockAutoLockTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new HexalockAutoLock(); diff --git a/BinaryObjectScanner.Test/Protection/ImpulseReactorTests.cs b/BinaryObjectScanner.Test/Protection/ImpulseReactorTests.cs index 0dc6585c..fb324f48 100644 --- a/BinaryObjectScanner.Test/Protection/ImpulseReactorTests.cs +++ b/BinaryObjectScanner.Test/Protection/ImpulseReactorTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ImpulseReactor(); diff --git a/BinaryObjectScanner.Test/Protection/InteniumTests.cs b/BinaryObjectScanner.Test/Protection/InteniumTests.cs index 14c5fbff..922af43d 100644 --- a/BinaryObjectScanner.Test/Protection/InteniumTests.cs +++ b/BinaryObjectScanner.Test/Protection/InteniumTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Intenium(); diff --git a/BinaryObjectScanner.Test/Protection/InterLokTests.cs b/BinaryObjectScanner.Test/Protection/InterLokTests.cs index 54df2acd..007b45f7 100644 --- a/BinaryObjectScanner.Test/Protection/InterLokTests.cs +++ b/BinaryObjectScanner.Test/Protection/InterLokTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new InterLok(); diff --git a/BinaryObjectScanner.Test/Protection/JoWoodTests.cs b/BinaryObjectScanner.Test/Protection/JoWoodTests.cs index 237289e2..4cd21f43 100644 --- a/BinaryObjectScanner.Test/Protection/JoWoodTests.cs +++ b/BinaryObjectScanner.Test/Protection/JoWoodTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new JoWood(); diff --git a/BinaryObjectScanner.Test/Protection/KalypsoLauncherTests.cs b/BinaryObjectScanner.Test/Protection/KalypsoLauncherTests.cs index 55e68440..abb77147 100644 --- a/BinaryObjectScanner.Test/Protection/KalypsoLauncherTests.cs +++ b/BinaryObjectScanner.Test/Protection/KalypsoLauncherTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new KalypsoLauncher(); diff --git a/BinaryObjectScanner.Test/Protection/LabelGateTests.cs b/BinaryObjectScanner.Test/Protection/LabelGateTests.cs index 9d15a726..b8b50e56 100644 --- a/BinaryObjectScanner.Test/Protection/LabelGateTests.cs +++ b/BinaryObjectScanner.Test/Protection/LabelGateTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new LabelGate(); diff --git a/BinaryObjectScanner.Test/Protection/LaserLokTests.cs b/BinaryObjectScanner.Test/Protection/LaserLokTests.cs index 49ede6a3..ccc26b63 100644 --- a/BinaryObjectScanner.Test/Protection/LaserLokTests.cs +++ b/BinaryObjectScanner.Test/Protection/LaserLokTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new LaserLok(); diff --git a/BinaryObjectScanner.Test/Protection/MGIRegistrationTests.cs b/BinaryObjectScanner.Test/Protection/MGIRegistrationTests.cs index 709114e2..7ed1f008 100644 --- a/BinaryObjectScanner.Test/Protection/MGIRegistrationTests.cs +++ b/BinaryObjectScanner.Test/Protection/MGIRegistrationTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new MGIRegistration(); diff --git a/BinaryObjectScanner.Test/Protection/MacrovisionTests.cs b/BinaryObjectScanner.Test/Protection/MacrovisionTests.cs index 1f89f29a..07edd420 100644 --- a/BinaryObjectScanner.Test/Protection/MacrovisionTests.cs +++ b/BinaryObjectScanner.Test/Protection/MacrovisionTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.NewExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source); var checker = new Macrovision(); @@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Macrovision(); diff --git a/BinaryObjectScanner.Test/Protection/MediaCloQTests.cs b/BinaryObjectScanner.Test/Protection/MediaCloQTests.cs index 88604e2e..1fdd9df7 100644 --- a/BinaryObjectScanner.Test/Protection/MediaCloQTests.cs +++ b/BinaryObjectScanner.Test/Protection/MediaCloQTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new MediaCloQ(); diff --git a/BinaryObjectScanner.Test/Protection/MediaMaxTests.cs b/BinaryObjectScanner.Test/Protection/MediaMaxTests.cs index 4ab5a5ef..9bb90f32 100644 --- a/BinaryObjectScanner.Test/Protection/MediaMaxTests.cs +++ b/BinaryObjectScanner.Test/Protection/MediaMaxTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new MediaMax(); diff --git a/BinaryObjectScanner.Test/Protection/NEACProtectTests.cs b/BinaryObjectScanner.Test/Protection/NEACProtectTests.cs index 0de250a6..50f6c63c 100644 --- a/BinaryObjectScanner.Test/Protection/NEACProtectTests.cs +++ b/BinaryObjectScanner.Test/Protection/NEACProtectTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new NEACProtect(); diff --git a/BinaryObjectScanner.Test/Protection/NProtectTests.cs b/BinaryObjectScanner.Test/Protection/NProtectTests.cs index f900a95f..722becec 100644 --- a/BinaryObjectScanner.Test/Protection/NProtectTests.cs +++ b/BinaryObjectScanner.Test/Protection/NProtectTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new NProtect(); diff --git a/BinaryObjectScanner.Test/Protection/OnlineRegistrationTests.cs b/BinaryObjectScanner.Test/Protection/OnlineRegistrationTests.cs index baea5223..fe70495b 100644 --- a/BinaryObjectScanner.Test/Protection/OnlineRegistrationTests.cs +++ b/BinaryObjectScanner.Test/Protection/OnlineRegistrationTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new OnlineRegistration(); diff --git a/BinaryObjectScanner.Test/Protection/OpenMGTests.cs b/BinaryObjectScanner.Test/Protection/OpenMGTests.cs index fccfaa8c..bd1e3804 100644 --- a/BinaryObjectScanner.Test/Protection/OpenMGTests.cs +++ b/BinaryObjectScanner.Test/Protection/OpenMGTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new OpenMG(); diff --git a/BinaryObjectScanner.Test/Protection/OriginTests.cs b/BinaryObjectScanner.Test/Protection/OriginTests.cs index 4f811f2e..2754e97f 100644 --- a/BinaryObjectScanner.Test/Protection/OriginTests.cs +++ b/BinaryObjectScanner.Test/Protection/OriginTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Origin(); diff --git a/BinaryObjectScanner.Test/Protection/PlayJTests.cs b/BinaryObjectScanner.Test/Protection/PlayJTests.cs index 27a15070..712358a8 100644 --- a/BinaryObjectScanner.Test/Protection/PlayJTests.cs +++ b/BinaryObjectScanner.Test/Protection/PlayJTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new PlayJ(); diff --git a/BinaryObjectScanner.Test/Protection/ProtectDiscTests.cs b/BinaryObjectScanner.Test/Protection/ProtectDiscTests.cs index 1857ffeb..3cd75556 100644 --- a/BinaryObjectScanner.Test/Protection/ProtectDiscTests.cs +++ b/BinaryObjectScanner.Test/Protection/ProtectDiscTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ProtectDISC(); diff --git a/BinaryObjectScanner.Test/Protection/RainbowSentinelTests.cs b/BinaryObjectScanner.Test/Protection/RainbowSentinelTests.cs index ccf6c6ea..c27b6f4a 100644 --- a/BinaryObjectScanner.Test/Protection/RainbowSentinelTests.cs +++ b/BinaryObjectScanner.Test/Protection/RainbowSentinelTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.NewExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source); var checker = new RainbowSentinel(); @@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new RainbowSentinel(); diff --git a/BinaryObjectScanner.Test/Protection/RealArcadeTests.cs b/BinaryObjectScanner.Test/Protection/RealArcadeTests.cs index ecfc9d22..b2810113 100644 --- a/BinaryObjectScanner.Test/Protection/RealArcadeTests.cs +++ b/BinaryObjectScanner.Test/Protection/RealArcadeTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new RealArcade(); diff --git a/BinaryObjectScanner.Test/Protection/RoxxeTests.cs b/BinaryObjectScanner.Test/Protection/RoxxeTests.cs index 05e4f37b..eb88e092 100644 --- a/BinaryObjectScanner.Test/Protection/RoxxeTests.cs +++ b/BinaryObjectScanner.Test/Protection/RoxxeTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Roxxe(); diff --git a/BinaryObjectScanner.Test/Protection/SVKProtectorTests.cs b/BinaryObjectScanner.Test/Protection/SVKProtectorTests.cs index 270ab876..f5247ef4 100644 --- a/BinaryObjectScanner.Test/Protection/SVKProtectorTests.cs +++ b/BinaryObjectScanner.Test/Protection/SVKProtectorTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SVKProtector(); diff --git a/BinaryObjectScanner.Test/Protection/SecuROMTests.cs b/BinaryObjectScanner.Test/Protection/SecuROMTests.cs index 55690cee..f81716e7 100644 --- a/BinaryObjectScanner.Test/Protection/SecuROMTests.cs +++ b/BinaryObjectScanner.Test/Protection/SecuROMTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SecuROM(); diff --git a/BinaryObjectScanner.Test/Protection/SmartETests.cs b/BinaryObjectScanner.Test/Protection/SmartETests.cs index 31927486..29b02378 100644 --- a/BinaryObjectScanner.Test/Protection/SmartETests.cs +++ b/BinaryObjectScanner.Test/Protection/SmartETests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SmartE(); diff --git a/BinaryObjectScanner.Test/Protection/SoftLockTests.cs b/BinaryObjectScanner.Test/Protection/SoftLockTests.cs index 87fb685c..06717341 100644 --- a/BinaryObjectScanner.Test/Protection/SoftLockTests.cs +++ b/BinaryObjectScanner.Test/Protection/SoftLockTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SoftLock(); diff --git a/BinaryObjectScanner.Test/Protection/SolidShieldTests.cs b/BinaryObjectScanner.Test/Protection/SolidShieldTests.cs index 4103d268..acdc2d02 100644 --- a/BinaryObjectScanner.Test/Protection/SolidShieldTests.cs +++ b/BinaryObjectScanner.Test/Protection/SolidShieldTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new SolidShield(); diff --git a/BinaryObjectScanner.Test/Protection/StarForceTests.cs b/BinaryObjectScanner.Test/Protection/StarForceTests.cs index b494ab16..8f3ce1df 100644 --- a/BinaryObjectScanner.Test/Protection/StarForceTests.cs +++ b/BinaryObjectScanner.Test/Protection/StarForceTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new StarForce(); diff --git a/BinaryObjectScanner.Test/Protection/SteamTests.cs b/BinaryObjectScanner.Test/Protection/SteamTests.cs index c247344d..006c4874 100644 --- a/BinaryObjectScanner.Test/Protection/SteamTests.cs +++ b/BinaryObjectScanner.Test/Protection/SteamTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Steam(); diff --git a/BinaryObjectScanner.Test/Protection/SysiphusTests.cs b/BinaryObjectScanner.Test/Protection/SysiphusTests.cs index 66a7149f..27a66c7c 100644 --- a/BinaryObjectScanner.Test/Protection/SysiphusTests.cs +++ b/BinaryObjectScanner.Test/Protection/SysiphusTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Sysiphus(); diff --git a/BinaryObjectScanner.Test/Protection/TAGESTests.cs b/BinaryObjectScanner.Test/Protection/TAGESTests.cs index 001cfc4c..29ff771c 100644 --- a/BinaryObjectScanner.Test/Protection/TAGESTests.cs +++ b/BinaryObjectScanner.Test/Protection/TAGESTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new TAGES(); diff --git a/BinaryObjectScanner.Test/Protection/ThemidaTests.cs b/BinaryObjectScanner.Test/Protection/ThemidaTests.cs index 8235afe4..32b7d1cc 100644 --- a/BinaryObjectScanner.Test/Protection/ThemidaTests.cs +++ b/BinaryObjectScanner.Test/Protection/ThemidaTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Themida(); diff --git a/BinaryObjectScanner.Test/Protection/ThreePLockTests.cs b/BinaryObjectScanner.Test/Protection/ThreePLockTests.cs index 6d422c5d..ed275c91 100644 --- a/BinaryObjectScanner.Test/Protection/ThreePLockTests.cs +++ b/BinaryObjectScanner.Test/Protection/ThreePLockTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ThreePLock(); diff --git a/BinaryObjectScanner.Test/Protection/ThreeTwoOneStudiosTests.cs b/BinaryObjectScanner.Test/Protection/ThreeTwoOneStudiosTests.cs index 97dcba9f..88043914 100644 --- a/BinaryObjectScanner.Test/Protection/ThreeTwoOneStudiosTests.cs +++ b/BinaryObjectScanner.Test/Protection/ThreeTwoOneStudiosTests.cs @@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new ThreeTwoOneStudios(); diff --git a/BinaryObjectScanner.Test/Protection/UplayTests.cs b/BinaryObjectScanner.Test/Protection/UplayTests.cs index ff51e94c..e2fadb77 100644 --- a/BinaryObjectScanner.Test/Protection/UplayTests.cs +++ b/BinaryObjectScanner.Test/Protection/UplayTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new Uplay(); diff --git a/BinaryObjectScanner.Test/Protection/WMDSTests.cs b/BinaryObjectScanner.Test/Protection/WMDSTests.cs index ba922e43..6fb04aff 100644 --- a/BinaryObjectScanner.Test/Protection/WMDSTests.cs +++ b/BinaryObjectScanner.Test/Protection/WMDSTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new WMDS(); diff --git a/BinaryObjectScanner.Test/Protection/WTMCDProtectTests.cs b/BinaryObjectScanner.Test/Protection/WTMCDProtectTests.cs index bd17a35e..d9a2fe1b 100644 --- a/BinaryObjectScanner.Test/Protection/WTMCDProtectTests.cs +++ b/BinaryObjectScanner.Test/Protection/WTMCDProtectTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new WTMCDProtect(); diff --git a/BinaryObjectScanner.Test/Protection/XCPTests.cs b/BinaryObjectScanner.Test/Protection/XCPTests.cs index e99fd7d0..2d223960 100644 --- a/BinaryObjectScanner.Test/Protection/XCPTests.cs +++ b/BinaryObjectScanner.Test/Protection/XCPTests.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection { string file = "filename"; SabreTools.Models.PortableExecutable.Executable model = new(); - Stream source = new MemoryStream(); + Stream source = new MemoryStream(new byte[1024]); SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source); var checker = new XCP();