mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 18:49:46 +00:00
avcodec/iff: Clear ham_buf
Fixes: use of uninitialized memory Fixes: 423673969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-6651797156724736 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
715df4b1ff
commit
7e9e7cb3b6
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ static int extract_header(AVCodecContext *const avctx,
|
|||
if (avctx->codec_tag == MKTAG('P', 'B', 'M', ' ') && s->ham == 4)
|
||||
extra_space = 4;
|
||||
|
||||
s->ham_buf = av_malloc((s->planesize * 8) + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
s->ham_buf = av_mallocz((s->planesize * 8) + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!s->ham_buf)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue