The time the x86 emulator team found code so bad they fixed it during emulation
Based on Raymond Chen's "The Old New Thing"
Running x86 applications on ARM processors through emulation
The code was so bad that the emulator team decided to patch it during emulation—something they had never done before.
A perfect storm of undefined behavior and real-world consequences
Code that relied on implementation-specific behavior, not language guarantees
Assumptions about instruction timing that didn't hold under emulation
Reliance on specific memory layouts or uninitialized values
The problematic code was in widely-used, essential software
Emulator recognizes the problematic code sequence at runtime
Dynamically modify the translated code to fix the issue
Application runs correctly without knowing it was patched
Fix reaches all users automatically through the emulator
Sometimes the right fix is in the last place you'd expect