Commit 16d6cc21 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wavpack: Change wp_log2() to unsigned

Fixes: runtime error: signed integer overflow: 2143315325 + 4186162 cannot be represented in type 'int'
Fixes: 2134/clusterfuzz-testcase-minimized-4619258405322752

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e77ddd31
......@@ -177,7 +177,7 @@ static av_always_inline int wp_exp2(int16_t val)
return neg ? -res : res;
}
static av_always_inline int wp_log2(int32_t val)
static av_always_inline int wp_log2(uint32_t val)
{
int bits;
......
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