提交 3dc24b33 编写于 作者: T Thierry Foucu 提交者: Michael Niedermayer

libavcodec/mlp_parser.c: fix a use_of_uninitialized_value in target_dec_fuzzer.

the target_dec_fuzzer is checking for the avpkt.data pointer but if the
mlp parser cannot combine the frame, the poutbuf is not set.
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 d5422a14
......@@ -64,6 +64,7 @@ static int mlp_parse(AVCodecParserContext *s,
s->key_frame = 0;
*poutbuf_size = 0;
*poutbuf = NULL;
if (buf_size == 0)
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册