Fixes: use-of-uninitialized-value Fixes: 70865/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AIC_fuzzer-4874102695854080
Unified · Split
| @@ -465,8 +465,7 @@ static av_cold int aic_decode_init(AVCodecContext *avctx) · 464 unmodified lines | |||
| 465 | } | 465 | } |
| 466 | } | 466 | } |
| 467 | 467 | ||
| 468 | ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS | 468 | ctx->slice_data = av_calloc(ctx->slice_width, AIC_BAND_COEFFS * sizeof(*ctx->slice_data)); |
| 469 | * sizeof(*ctx->slice_data)); | ||
| 470 | if (!ctx->slice_data) { | 469 | if (!ctx->slice_data) { |
| 471 | av_log(avctx, AV_LOG_ERROR, "Error allocating slice buffer\n"); | 470 | av_log(avctx, AV_LOG_ERROR, "Error allocating slice buffer\n"); |
| 472 | 471 | ||