https://gitlab.synchro.net/main/sbbs/-/commit/93c16c71ca92c5fdd0bedcb0
Modified Files:
src/doors/clans-src/src/langcomp.c mclass.c mcomp.c
Log Message:
Add bounds checks to mcomp, mclass, and langcomp compilers
Same class of bug as the makenpc topic overflow: devkit compilers
wrote to fixed-size arrays without checking the index first.
- mcomp.c: check LastSpellSlot < MAX_SPELLS before writing SpellsKnown
- mclass.c: check LastSpellSlot < MAX_SPELLS before writing SpellsKnown
- langcomp.c: check CurString is in [0, 2000) before indexing
MacroNames and StrOffsets
Co-Authored-By: Claude Opus 4.6 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net