mirror of https://github.com/mgba-emu/mgba.git
Core: Reject mVL with zero-length initial states
This commit is contained in:
parent
6a14c30e3b
commit
0ed5973f84
|
@ -562,7 +562,7 @@ bool _readHeader(struct mVideoLogContext* context) {
|
|||
if (!_readBlockHeader(context, &header)) {
|
||||
return false;
|
||||
}
|
||||
if (header.blockType != mVL_BLOCK_INITIAL_STATE) {
|
||||
if (header.blockType != mVL_BLOCK_INITIAL_STATE || !header.length) {
|
||||
return false;
|
||||
}
|
||||
if (context->initialState) {
|
||||
|
|
Loading…
Reference in New Issue