GBA BIOS: Reject bit length 1 in HuffUnComp
Jeffrey Pfau jeffrey@endrift.com
Tue, 13 Jan 2015 21:37:38 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-bios.c
→
src/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; }