Anonymous user
Pokémon sprite corruptions (Generation I): Difference between revisions
Pokémon sprite corruptions (Generation I) (view source)
Revision as of 11:29, 30 October 2019
, 4 years ago→Hall of Fame corruption: typo
>Torchickens |
>Ryccardo m (→Hall of Fame corruption: typo) |
||
Line 10:
* Pokémon front and back pictures are stored in ROM compressed, and each compressed image has an header defining the horizontal and vertical sizes (in number of 8x8 tiles) of the picture.<ref>[https://github.com/pret/pokered/blob/6ba3765c5932996f5da6417ae703794ff10bb1cb/home/pic.asm pokered:home/pic.asm]</ref>
* Glitch Pokémon are not guaranteed to have these sizes set to reasonable amounts.
* Compressed graphics are extracted to the second
* The code responsible for decompressing the graphics is not limited in size of output, meaning that [[Buffer overflow|an excessively large picture will overwrite]] the Hall of Fame.
* In particular, a size of 0 underflows and is assumed to mean 256 rows or columns, a size far exceeding the one of a semantically valid image.
|