all repos — mgba @ 179f12bf09d0eded5aea1f3cdc0d27be9912e1b4

mGBA Game Boy Advance Emulator

GBA BIOS: Initialize a variable that may be uninitialized in very rare cases
Jeffrey Pfau jeffrey@endrift.com
Sat, 09 May 2015 00:29:52 -0700
commit

179f12bf09d0eded5aea1f3cdc0d27be9912e1b4

parent

ec14557a1e90314c47b0642079e0408ec3153aa8

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -49,6 +49,7 @@ - ARM7: Handle writeback for PC in addressing modes 2 and 3

- GBA: Handle out-of-bounds I/O access - GBA: Fix bounds-checking on EEPROM access - ARM7: Make illegal instruction decoding consistent between ARM and Thumb + - GBA BIOS: Initialize a variable that may be uninitialized in very rare cases Misc: - Qt: Show multiplayer numbers in window title - Qt: Handle saving input settings better
M src/gba/bios.csrc/gba/bios.c

@@ -331,7 +331,7 @@ int blocksRemaining = 0;

uint32_t disp; int bytes; int byte; - int halfword; + int halfword = 0; while (remaining > 0) { if (blocksRemaining) { if (blockheader & 0x80) {