From a26f04c11dd86e949e649a8c0a01eeaeae268c26 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sun, 21 Apr 2024 20:15:04 +0200 Subject: Added buffer overflow checks to the Huffmann decompression (https://github.com/ladislav-zezula/StormLib/issues/336) --- test/StormTest.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') 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); } -*/ } //----------------------------------------------------------------------------- -- cgit v1.2.3