From 449585dace03bf6a1e3af26481643a36ac4dd2e0 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 16 Dec 2025 02:42:51 -0300 Subject: 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. --- src/common.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common.hh') 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 // ============================================================================= -- cgit v1.2.3