diff options
author | 2025-06-27 22:45:11 +0100 | |
---|---|---|
committer | 2025-06-27 22:52:10 +0100 | |
commit | 36910c88033bcc4b25df5c64ed066c633dc4eac2 (patch) | |
tree | ab3163814747938b7bcbf39dc3aef8a2f2f9c359 /src/hook.c | |
parent | a9f44f3a6cccdf147376f8bf010a85b334ed4c72 (diff) | |
download | sst-36910c88033bcc4b25df5c64ed066c633dc4eac2.tar.gz sst-36910c88033bcc4b25df5c64ed066c633dc4eac2.zip |
Fix indexing edge case in mkgamedata
This took longer to debug than one might like to admit. In some very
specific cases, the loop condition would fail before the return
condition, causing the rest of the logic to proceed with out-of-bounds
accesses to indents and exprs (which are zero-initialised), in turn
leading to garbage getting dumped into the generated header.
The garbage in question would be line 0, and [argv[0]
Diffstat (limited to 'src/hook.c')
0 files changed, 0 insertions, 0 deletions