Infidel goes wild
Summary
A detailed post analyzing a memory corruption bug in the Infidel game (Z-machine) caused by an incorrect default argument binding to a global variable. The article dissects how the bug leads to memory overwrite and text corruption, includes disassembly notes and a proposed fix, and discusses historical context and potential memory safety lessons.