Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of an article from Glitch City Laboratories wiki.

A live version of this article is available at the Glitch City Wiki here.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of the wiki in .tar.gz or .xml.gz formats.

Buffer overflow

Buffer overflow is a term used to describe when data is put in storage but the size of the data is excessively large (for example: a text string over the maximum number of characters supported by the game).

The term could for example describe a glitch where data has an excessively long name and the name overflows to corrupt unrelated memory addresses, or the game copying more data than it is supposed to.

In the Pokémon games

The latter example of the game copying more data than it is supposed to occurs with many buffer overflow glitches in Pokémon Red, Blue, and Yellow.

These are listed below, as such:
  • Unterminated name glitch item exploits: Japanese unterminated name glitch item instant encounter glitch, LOL glitch, Rival LOL glitch, Instant encounter infinite chain glitch (LGFly), Yami Shop glitch.
  • Unterminated name glitch Pokémon exploits: oobLG, blockoobLG, Instant encounter infinite chain glitch (LGFly)).
  • Unterminated name move exploits: Super Glitch (Generation I), CoolTrainer♀ corruption, Double distort CoolTrainer♀ corruption.
  • Others: Unterminated fly destinations, Unterminated victory/loss Trainer names

    In addition, Super Glitch from moves in Generation III may be caused by a buffer overflow from the move's excessively long name and Pokémon News Reporter corruption is a corruption technique caused by a glitch Pokémon's excessively long name.

    ZZAZZ glitch is also caused by the game writing beyond the payout money pointer at D079 (D078 in Yellow).

    Another glitch which exploits the expanded party, known as "wild appeared!" occurs when the game attempts to set values relating to the Poké Ball graphics representing the state of the player's Pokémon beyond the normal buffer of six Pokémon.