Commit 3dc24b33 authored by Thierry Foucu's avatar Thierry Foucu Committed by 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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d5422a14
...@@ -64,6 +64,7 @@ static int mlp_parse(AVCodecParserContext *s, ...@@ -64,6 +64,7 @@ static int mlp_parse(AVCodecParserContext *s,
s->key_frame = 0; s->key_frame = 0;
*poutbuf_size = 0; *poutbuf_size = 0;
*poutbuf = NULL;
if (buf_size == 0) if (buf_size == 0)
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment