all repos — mgba @ 0ed5973f84d27eb54a1ad775ac9cc8940c577dbd

mGBA Game Boy Advance Emulator

Core: Reject mVL with zero-length initial states
Vicki Pfau vi@endrift.com
Mon, 24 Apr 2017 15:29:50 -0700
commit

0ed5973f84d27eb54a1ad775ac9cc8940c577dbd

parent

6a14c30e3bbf5f665eeab5d54723ddc6690d2978

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/feature/video-logger.csrc/feature/video-logger.c

@@ -562,7 +562,7 @@ struct mVLBlockHeader header;

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) {