From 656c3001ade639a55a634683d6a2107285707190 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 28 Jul 2020 15:35:56 -0700 Subject: [PATCH] GBA Video: Fix cache bounds --- include/mgba/internal/gba/renderers/video-software.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mgba/internal/gba/renderers/video-software.h b/include/mgba/internal/gba/renderers/video-software.h index 8df09011d..fb62baaea 100644 --- a/include/mgba/internal/gba/renderers/video-software.h +++ b/include/mgba/internal/gba/renderers/video-software.h @@ -156,7 +156,7 @@ struct GBAVideoSoftwareRenderer { int16_t objOffsetX; int16_t objOffsetY; - uint32_t scanlineDirty[5]; + uint32_t scanlineDirty[6]; uint16_t nextIo[REG_SOUND1CNT_LO >> 1]; struct ScanlineCache { uint16_t io[REG_SOUND1CNT_LO >> 1];