mirror of https://github.com/mgba-emu/mgba.git
GBA BIOS: Reject bit length 1 in HuffUnComp
This commit is contained in:
parent
369ccc6402
commit
47661def29
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue