History

avcodec/mvha: Clear remaining space after inflate()

Fixes: use-of-uninitialized-value Fixes: 70838/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVHA_fuzzer-4878509466517504

Michael Niedermayer committed 2 years ago

Commit cba4e2e1 parent a0f22211 file · +2 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mvha.c+2−0
@@ -183,6 +183,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, · 182 unmodified lines
183183 av_log(avctx, AV_LOG_ERROR, "Inflate error: %d\n", ret);
184184 return AVERROR_EXTERNAL;
185185 }
186+ if (zstream->avail_out > 0)
187+ memset(zstream->next_out, 0, zstream->avail_out);
186188 }
187189 }
188190 } else if (type == MKTAG('H','U','F','Y')) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t