f59158a95c857a37a9cf0a8c66f2e741edeb293a
Several quest-loading loops used <=N over arrays sized N (Variables, Switches, Items, EpisodeVar, JobVar, PlanetVar, UnionVar), writing one element past the end on every character load. Also guard STB_QUEST table lookups with a rowcount bounds check before indexing by QuestID, which could otherwise read out of bounds for stale/invalid quest ids. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Languages
C++
92.9%
HTML
3.1%
C
2%
Python
1.3%
CMake
0.4%
Other
0.3%