]> git.sesse.net Git - ffmpeg/commitdiff
libavcodec/mlp_parser.c: fix a use_of_uninitialized_value in target_dec_fuzzer.
authorThierry Foucu <tfoucu@gmail.com>
Thu, 4 Jun 2020 20:03:15 +0000 (13:03 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 Jun 2020 22:25:00 +0000 (00:25 +0200)
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>
libavcodec/mlp_parser.c

index 5d2ddc5a70f65bb618cc05dfc4e3450e0ea3c84a..e7162f4aa83cb806a4e4be6b64a00c70dc715ad2 100644 (file)
@@ -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;