Fixes: use-of-uninitialized-value Fixes: 70838/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVHA_fuzzer-4878509466517504
Unified · Split
| @@ -183,6 +183,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, · 182 unmodified lines | ||
| 183 | 183 | av_log(avctx, AV_LOG_ERROR, "Inflate error: %d\n", ret); |
| 184 | 184 | return AVERROR_EXTERNAL; |
| 185 | 185 | } |
| 186 | + if (zstream->avail_out > 0) | |
| 187 | + memset(zstream->next_out, 0, zstream->avail_out); | |
| 186 | 188 | } |
| 187 | 189 | } |
| 188 | 190 | } else if (type == MKTAG('H','U','F','Y')) { |