From 47661def2919f49fdf0b23a5110179fa9b96b950 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 13 Jan 2015 21:37:38 -0800 Subject: [PATCH] GBA BIOS: Reject bit length 1 in HuffUnComp --- src/gba/gba-bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba-bios.c b/src/gba/gba-bios.c index 91011b406..847465126 100644 --- a/src/gba/gba-bios.c +++ b/src/gba/gba-bios.c @@ -392,7 +392,7 @@ static void _unHuffman(struct GBA* gba) { 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; }