From 86b6888f3ece894d02ef625ff16939a14670ed98 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sun, 21 Apr 2024 14:14:28 +0200 Subject: Fixed heap overrun in https://github.com/ladislav-zezula/StormLib/issues/327 --- test/StormTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/StormTest.cpp') diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 3276c59..718c910 100755 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -4183,9 +4183,10 @@ static const LPCSTR Test_CreateMpq_Localized[] = // Main #define TEST_COMMAND_LINE -#define TEST_LOCAL_LISTFILE -#define TEST_STREAM_OPERATIONS -#define TEST_MASTER_MIRROR +//#define TEST_LOCAL_LISTFILE +//#define TEST_STREAM_OPERATIONS +//#define TEST_MASTER_MIRROR +#define TEST_OPEN_MPQ #define TEST_OPEN_MPQ #define TEST_REOPEN_MPQ #define TEST_VERIFY_SIGNATURE @@ -4211,7 +4212,7 @@ int _tmain(int argc, TCHAR * argv[]) #ifdef TEST_COMMAND_LINE // Test-open MPQs from the command line. They must be plain name // and must be placed in the Test-MPQs folder - for(int i = 1; i < argc; i++) + for(int i = 2; i < argc; i++) { TestOpenArchive(argv[i], NULL, NULL, 0, &LfBliz); } -- cgit v1.2.3