mirror of https://github.com/mgba-emu/mgba.git
GBA BIOS: Reject bit length 1 in HuffUnComp
This commit is contained in:
parent
e0639990b5
commit
3c09508101
|
@ -317,7 +317,7 @@ static void _unHuffman(struct GBA* gba, uint32_t source, uint32_t dest) {
|
||||||
GBALog(gba, GBA_LOG_GAME_ERROR, "Invalid Huffman bits");
|
GBALog(gba, GBA_LOG_GAME_ERROR, "Invalid Huffman bits");
|
||||||
bits = 8;
|
bits = 8;
|
||||||
}
|
}
|
||||||
if (32 % bits) {
|
if (32 % bits || bits == 1) {
|
||||||
GBALog(gba, GBA_LOG_STUB, "Unimplemented unaligned Huffman");
|
GBALog(gba, GBA_LOG_STUB, "Unimplemented unaligned Huffman");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue