Core: Reject mVL with zero-length initial states
Vicki Pfau vi@endrift.com
Mon, 24 Apr 2017 15:29:50 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/feature/video-logger.c
→
src/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) {