diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-12-16 02:42:51 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-12-16 02:42:51 -0300 |
| commit | 449585dace03bf6a1e3af26481643a36ac4dd2e0 (patch) | |
| tree | 868e608b7802a569d4f8368e2b7624fff8e0e08d /src/common.hh | |
| parent | 9f511989217dac3984e838549e33c47d7b16bacd (diff) | |
| download | game-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.hh | 2 |
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 // ============================================================================= |
