Fixes: use-of-uninitialized-value Fixes: 70869/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5476567461986304
Unified · Split
| @@ -2112,7 +2112,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 2111 unmodified lines | |||
| 2112 | ctx->acf = av_malloc_array(channels, sizeof(*ctx->acf)); | 2112 | ctx->acf = av_malloc_array(channels, sizeof(*ctx->acf)); |
| 2113 | ctx->shift_value = av_calloc(channels, sizeof(*ctx->shift_value)); | 2113 | ctx->shift_value = av_calloc(channels, sizeof(*ctx->shift_value)); |
| 2114 | ctx->last_shift_value = av_calloc(channels, sizeof(*ctx->last_shift_value)); | 2114 | ctx->last_shift_value = av_calloc(channels, sizeof(*ctx->last_shift_value)); |
| 2115 | ctx->last_acf_mantissa = av_malloc_array(channels, sizeof(*ctx->last_acf_mantissa)); | 2115 | ctx->last_acf_mantissa = av_calloc(channels, sizeof(*ctx->last_acf_mantissa)); |
| 2116 | ctx->raw_mantissa = av_calloc(channels, sizeof(*ctx->raw_mantissa)); | 2116 | ctx->raw_mantissa = av_calloc(channels, sizeof(*ctx->raw_mantissa)); |
| 2117 | 2117 | ||
| 2118 | ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, sizeof(*ctx->larray)); | 2118 | ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, sizeof(*ctx->larray)); |