aboutsummaryrefslogtreecommitdiff
path: root/src/common.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-12-16 02:42:51 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-12-16 02:42:51 -0300
commit449585dace03bf6a1e3af26481643a36ac4dd2e0 (patch)
tree868e608b7802a569d4f8368e2b7624fff8e0e08d /src/common.hh
parent9f511989217dac3984e838549e33c47d7b16bacd (diff)
downloadgame-449585dace03bf6a1e3af26481643a36ac4dd2e0.tar.gz
game-449585dace03bf6a1e3af26481643a36ac4dd2e0.zip
fix buffer overrun when matching spell syllables
Thankfully this triggered a stack check assertion, causing the application to crash and exposing the bug. Thanks to dajotsa from OTLand for reporting it.
Diffstat (limited to 'src/common.hh')
-rw-r--r--src/common.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.hh b/src/common.hh
index a22a511..28b48de 100644
--- a/src/common.hh
+++ b/src/common.hh
@@ -101,6 +101,8 @@ STATIC_ASSERT(OS_LINUX);
//#define MAX_QUESTS 500
#define MAX_DEPOTS 9
//#define MAX_OPEN_CONTAINERS 16
+#define MAX_SPELL_SYLLABLES 10
+
// shm.cc
// =============================================================================