Commit d5422a14 authored by Thierry Foucu's avatar Thierry Foucu Committed by Michael Niedermayer

libavcodec/png_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
png parser cannot combine the frame, the poutbuf is not set.
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent cf28521f
...@@ -45,6 +45,7 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx, ...@@ -45,6 +45,7 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx,
s->pict_type = AV_PICTURE_TYPE_NONE; s->pict_type = AV_PICTURE_TYPE_NONE;
*poutbuf_size = 0; *poutbuf_size = 0;
*poutbuf = NULL;
if (!ppc->pc.frame_start_found) { if (!ppc->pc.frame_start_found) {
uint64_t state64 = ppc->pc.state64; uint64_t state64 = ppc->pc.state64;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment