aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-04-21 14:14:28 +0200
committerLadislav Zezula <zezula@volny.cz>2024-04-21 14:14:28 +0200
commit86b6888f3ece894d02ef625ff16939a14670ed98 (patch)
tree9e8d2cb2188cc540e9726edcbfea8c47543d5b96 /test/StormTest.cpp
parent605222393594f5885b877bfc0086dae756674965 (diff)
Fixed heap overrun in https://github.com/ladislav-zezula/StormLib/issues/327
Diffstat (limited to 'test/StormTest.cpp')
-rwxr-xr-xtest/StormTest.cpp9
1 files changed, 5 insertions, 4 deletions
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);
}