diff options
author | Ladislav Zezula <zezula@volny.cz> | 2024-04-21 20:15:04 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2024-04-21 20:15:04 +0200 |
commit | a26f04c11dd86e949e649a8c0a01eeaeae268c26 (patch) | |
tree | d551a53ab761fb58d436bd696673d350a64044e5 /test/StormTest.cpp | |
parent | b35dc1e4d9d1a70c77a7554df87900486388fe0b (diff) |
Added buffer overflow checks to the Huffmann decompression (https://github.com/ladislav-zezula/StormLib/issues/336)
Diffstat (limited to 'test/StormTest.cpp')
-rwxr-xr-x | test/StormTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 31e9981..60e2167 100755 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -3787,15 +3787,13 @@ static DWORD TestReplaceFile(LPCTSTR szMpqPlainName, LPCTSTR szFilePlainName, LP static void Test_PlayingSpace()
{
-/*
HANDLE hMpq = NULL;
- if(SFileOpenArchive(_T("e:\\poc17"), 0, 0, &hMpq))
+ if(SFileOpenArchive(_T("e:\\poc18"), 0, 0, &hMpq))
{
- SFileCompactArchive(hMpq, _T("e:\\Ladik\\Incoming\\poc17"), true);
+ SFileCompactArchive(hMpq, _T("e:\\Ladik\\Incoming\\poc18"), true);
SFileCloseArchive(hMpq);
}
-*/
}
//-----------------------------------------------------------------------------
|