Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2020-06-04 23:03:15 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2020-06-06 01:25:00 +0300
commit3dc24b3379fc4f9210dee7617accc5ef43879025 (patch)
tree45b7e92ae3d5c87b85a2e09366f0a767fbc74fa6 /libavcodec/mlp_parser.c
parentd5422a14e2a84e4feb7124c7e4d1950fdae697aa (diff)
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.c1
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;