From e0b6a7f85393085b40353986b8daa051b3ec7861 Mon Sep 17 00:00:00 2001 From: Adrian Siekierka <kontakt@asie.pl> Date: Thu, 20 May 2021 23:38:18 +0200 Subject: [PATCH] ppu: fix memory corruption out-of-bounds bug --- arm9/source/ppu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/ppu.c b/arm9/source/ppu.c index dfa334b..a9a5321 100644 --- a/arm9/source/ppu.c +++ b/arm9/source/ppu.c @@ -37,7 +37,7 @@ static Uint8 font[][8] = { #define PPU_TILES_HEIGHT 24 DTCM_BSS -static Uint32 tile_dirty[PPU_TILES_HEIGHT]; +static Uint32 tile_dirty[PPU_TILES_HEIGHT + 1]; DTCM_DATA static Uint32 lut_expand_8_32[256] = {