mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e77ddd31a8
commit
16d6cc2168
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue