all repos — mgba @ 47661def2919f49fdf0b23a5110179fa9b96b950

mGBA Game Boy Advance Emulator

GBA BIOS: Reject bit length 1 in HuffUnComp
Jeffrey Pfau jeffrey@endrift.com
Tue, 13 Jan 2015 21:37:38 -0800
commit

47661def2919f49fdf0b23a5110179fa9b96b950

parent

369ccc64025cb710c106a5f05fa171f14a3b9071

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

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -392,7 +392,7 @@ if (bits == 0) {

GBALog(gba, GBA_LOG_GAME_ERROR, "Invalid Huffman bits"); bits = 8; } - if (32 % bits) { + if (32 % bits || bits == 1) { GBALog(gba, GBA_LOG_STUB, "Unimplemented unaligned Huffman"); return; }