Fixes: use of uninitialized memory Fixes: 423673969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-6651797156724736
Unified · Split
| @@ -279,7 +279,7 @@ static int extract_header(AVCodecContext *const avctx, · 278 unmodified lines | |||
| 279 | if (avctx->codec_tag == MKTAG('P', 'B', 'M', ' ') && s->ham == 4) | 279 | if (avctx->codec_tag == MKTAG('P', 'B', 'M', ' ') && s->ham == 4) |
| 280 | extra_space = 4; | 280 | extra_space = 4; |
| 281 | 281 | ||
| 282 | s->ham_buf = av_malloc((s->planesize * 8) + AV_INPUT_BUFFER_PADDING_SIZE); | 282 | s->ham_buf = av_mallocz((s->planesize * 8) + AV_INPUT_BUFFER_PADDING_SIZE); |
| 283 | if (!s->ham_buf) | 283 | if (!s->ham_buf) |
| 284 | return AVERROR(ENOMEM); | 284 | return AVERROR(ENOMEM); |
| 285 | 285 | ||