aboutsummaryrefslogtreecommitdiff
path: root/src/StormLib.h
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/StormLib.h
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/StormLib.h')
-rw-r--r--src/StormLib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StormLib.h b/src/StormLib.h
index e1db062..1f3dee7 100644
--- a/src/StormLib.h
+++ b/src/StormLib.h
@@ -292,6 +292,7 @@ extern "C" {
// Signatures for HET and BET table
#define HET_TABLE_SIGNATURE 0x1A544548 // 'HET\x1a'
#define BET_TABLE_SIGNATURE 0x1A544542 // 'BET\x1a'
+#define BET_TABLE_MAX_SIZE 0x00100000 // Maximum acceptable size of HET&BET tables
// Decryption keys for MPQ tables
#define MPQ_KEY_HASH_TABLE 0xC3AF3770 // Obtained by HashString("(hash table)", MPQ_HASH_FILE_KEY)