Browse Source

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: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Thierry Foucu Michael Niedermayer 5 years ago
parent
commit
d5422a14e2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/png_parser.c

+ 1
- 0
libavcodec/png_parser.c View File

@@ -45,6 +45,7 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx,
s->pict_type = AV_PICTURE_TYPE_NONE;

*poutbuf_size = 0;
*poutbuf = NULL;

if (!ppc->pc.frame_start_found) {
uint64_t state64 = ppc->pc.state64;


Loading…
Cancel
Save