diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-17 00:53:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-02 01:14:38 +0200 |
commit | 6e788fadaee94353f8f24bc3acc0af2a8a9dbffe (patch) | |
tree | 202bf8f6732df72cb42e4c849bed1c0d2472f887 /libavcodec/mlpdec.c | |
parent | f34dc82d566cf0789c47fa3c86535e86cf926b8d (diff) | |
download | ffmpeg-6e788fadaee94353f8f24bc3acc0af2a8a9dbffe.tar.gz |
avcodec/mlpdec: Fix runtime error: left shift of negative value -1
Fixes: 1636/clusterfuzz-testcase-minimized-5310494757879808
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 552adf1dd3a38fb7a1a6109dd2b517d63290f20e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index fa4347fb23..eaf1aa7c75 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -701,7 +701,7 @@ static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp, /* TODO: Check validity of state data. */ for (i = 0; i < order; i++) - fp->state[i] = state_bits ? get_sbits(gbp, state_bits) << state_shift : 0; + fp->state[i] = state_bits ? get_sbits(gbp, state_bits) * (1 << state_shift) : 0; } } |