Commit 83a75bf6 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/flacdec: Fix signed integer overflow in decode_subframe_fixed()


Fixes undefined behavior
Fixes: 640912-media
Found-by: default avatarMatt Wolenetz <wolenetz@google.com>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
Showing with 2 additions and 1 deletion
+2 -1
......@@ -268,7 +268,8 @@ static int decode_subframe_fixed(FLACContext *s, int32_t *decoded,
int pred_order, int bps)
{
const int blocksize = s->blocksize;
int av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d), i;
unsigned av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d);
int i;
int ret;
/* warm up samples */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment