Fixes: use of uninitialized memory Fixes: 423673969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IAC_fuzzer-6685890556788736
Unified · Split
| @@ -966,6 +966,8 @@ static int imc_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 965 unmodified lines | |||
| 966 | 966 | ||
| 967 | LOCAL_ALIGNED_16(uint16_t, buf16, [(IMC_BLOCK_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / 2]); | 967 | LOCAL_ALIGNED_16(uint16_t, buf16, [(IMC_BLOCK_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / 2]); |
| 968 | 968 | ||
| 969 | memset(buf16 + IMC_BLOCK_SIZE/2, 0, AV_INPUT_BUFFER_PADDING_SIZE); | ||
| 970 | |||
| 969 | q->avctx = avctx; | 971 | q->avctx = avctx; |
| 970 | 972 | ||
| 971 | if (buf_size < IMC_BLOCK_SIZE * avctx->ch_layout.nb_channels) { | 973 | if (buf_size < IMC_BLOCK_SIZE * avctx->ch_layout.nb_channels) { |