Self-referential control character abuse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Created page with "'''Self-referential control character abuse''' refers to any exploits in the Pokémon games where a control character prints text but refers back to itself, resulting in a...")
 
No edit summary
Line 1: Line 1:
'''Self-referential control character abuse''' refers to any exploits in the Pokémon games where a [[control character]] prints text but refers back to itself, resulting in an infinite loop. In practise the loop is indefinite but not infinite; a buffer overflow may at some point freeze the game or break the text printing routine.
'''Self-referential control character abuse''' refers to any exploits in the Pokémon games where a [[control character]] prints text but refers back to itself, resulting in an infinite loop. In practise the loop is indefinite but not infinite; a buffer overflow may at some point freeze the game or break the text printing routine (e.g. via corruption of the stack).


In order for self-referential control character abuse to be successful, the game must also avoid printing terminating bytes before referring back to itself (where relevant such as 0x00, 0x50, etc.).
In order for self-referential control character abuse to be successful, the game must also avoid printing terminating bytes before referring back to itself (where relevant such as 0x00, 0x50, etc.).