summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2020-06-04 13:03:27 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2020-06-06 00:25:00 +0200
commita1a85579e304d5aa6e41324e41603e2d20b93df3 (patch)
treecbba61a77b46b8b8ae6330989b48285f19bc0729
parent3dc24b3379fc4f9210dee7617accc5ef43879025 (diff)
libavcodec/bmp_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 bmp parser cannot combine the frame, the poutbuf is not set. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/bmp_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/bmp_parser.c b/libavcodec/bmp_parser.c
index cd65f02a2e..700bf27af1 100644
--- a/libavcodec/bmp_parser.c
+++ b/libavcodec/bmp_parser.c
@@ -45,6 +45,7 @@ static int bmp_parse(AVCodecParserContext *s, AVCodecContext *avctx,
int i = 0;
*poutbuf_size = 0;
+ *poutbuf = NULL;
restart:
if (bpc->pc.frame_start_found <= 2+4+4) {