[FFmpeg-cvslog] libavcodec/mlp_parser.c: fix a use_of_uninitialized_value in target_dec_fuzzer.

Thierry Foucu git at videolan.org
Sat Jun 6 01:51:13 EEST 2020


ffmpeg | branch: master | Thierry Foucu <tfoucu at gmail.com> | Thu Jun  4 13:03:15 2020 -0700| [3dc24b3379fc4f9210dee7617accc5ef43879025] | committer: 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: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3dc24b3379fc4f9210dee7617accc5ef43879025
---

 libavcodec/mlp_parser.c | 1 +
 1 file changed, 1 insertion(+)

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;
 



More information about the ffmpeg-cvslog mailing list