This occurs on a 32x32 input Fixes: use of uninitialized value Fixes: 70897/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5960860961406976
Unified · Split
| @@ -285,7 +285,7 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx) · 284 unmodified lines | ||
| 285 | 285 | s->plane[i].dwt_buf = |
| 286 | 286 | av_calloc(h8 * 8 * w8 * 8, sizeof(*s->plane[i].dwt_buf)); |
| 287 | 287 | s->plane[i].dwt_tmp = |
| 288 | − av_malloc_array(h8 * 8 * w8 * 8, sizeof(*s->plane[i].dwt_tmp)); | |
| 288 | + av_calloc(h8 * 8 * w8 * 8, sizeof(*s->plane[i].dwt_tmp)); | |
| 289 | 289 | if (!s->plane[i].dwt_buf || !s->plane[i].dwt_tmp) |
| 290 | 290 | return AVERROR(ENOMEM); |
| 291 | 291 | |