Core: Reject mVL with zero-length initial states

This commit is contained in:
Vicki Pfau 2017-04-24 15:29:50 -07:00
parent 6a14c30e3b
commit 0ed5973f84
1 changed files with 1 additions and 1 deletions

View File

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