BBS:      TELESC.NET.BR
Assunto:  src/doors/clans-src/src/langcomp.c mclass.c mcomp.c
De:       Deuc¨
Data:     Mon, 9 Mar 2026 00:11:11 -0700
-----------------------------------------------------------
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 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]