aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseCommon.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2025-09-15 15:15:33 +0200
committerGitHub <noreply@github.com>2025-09-15 15:15:33 +0200
commitd1aef907ffd8ea6f6ce04c5495b1cd350afc932a (patch)
treed7648d47f2f735e9b181919b77eb0e2c30d2a551 /src/SBaseCommon.cpp
parent249b1c0490af45965ac5e75e138b80b8699da665 (diff)
parent49b619bae28ba5fcb63c192ef14a9b624e2a7286 (diff)
Merge pull request #399 from ladislav-zezula/LZ_FuzzingIssuesHEADmaster
Fixed https://github.com/ladislav-zezula/StormLib/issues/397 and http…
Diffstat (limited to 'src/SBaseCommon.cpp')
-rw-r--r--src/SBaseCommon.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SBaseCommon.cpp b/src/SBaseCommon.cpp
index 16caf4f..4d56502 100644
--- a/src/SBaseCommon.cpp
+++ b/src/SBaseCommon.cpp
@@ -1019,6 +1019,11 @@ void * LoadMpqTable(
return NULL;
}
}
+ else
+ {
+ // pocs/MPQ_2025_06_BadHashTableSize.mpq
+ dwCompressedSize = dwTableSize;
+ }
// Get the file offset from which we will read the table
// Note: According to Storm.dll from Warcraft III (version 2002),