History

avcodec/alsdec: clear last_acf_mantissa

Fixes: use-of-uninitialized-value Fixes: 70869/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5476567461986304

Michael Niedermayer committed 2 years ago

Commit db843c81 parent de3f6c81 file · +1 −1Browse files

Unified · Split

libavcodec/alsdec.c+1−1
@@ -2112,7 +2112,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 2111 unmodified lines
21122112 ctx->acf = av_malloc_array(channels, sizeof(*ctx->acf));
21132113 ctx->shift_value = av_calloc(channels, sizeof(*ctx->shift_value));
21142114 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));
21162116 ctx->raw_mantissa = av_calloc(channels, sizeof(*ctx->raw_mantissa));
21172117
21182118 ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, sizeof(*ctx->larray));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t