diff options
author | Thierry Foucu <tfoucu@gmail.com> | 2020-06-04 13:03:15 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-06-06 00:25:00 +0200 |
commit | 3dc24b3379fc4f9210dee7617accc5ef43879025 (patch) | |
tree | 45b7e92ae3d5c87b85a2e09366f0a767fbc74fa6 /libavcodec/mlp_parser.c | |
parent | d5422a14e2a84e4feb7124c7e4d1950fdae697aa (diff) | |
download | ffmpeg-3dc24b3379fc4f9210dee7617accc5ef43879025.tar.gz |
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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mlp_parser.c')
-rw-r--r-- | libavcodec/mlp_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c index 5d2ddc5a70..e7162f4aa8 100644 --- a/libavcodec/mlp_parser.c +++ b/libavcodec/mlp_parser.c @@ -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; |