mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avcodec/wavpack: Fix runtime error: left shift of negative value -1
Fixes: 1807/clusterfuzz-testcase-minimized-6258676199325696 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
89325417e7
commit
bce362d36c
@ -310,7 +310,7 @@ static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S)
|
||||
}
|
||||
|
||||
if (S) {
|
||||
S <<= s->float_shift;
|
||||
S *= 1 << s->float_shift;
|
||||
sign = S < 0;
|
||||
if (sign)
|
||||
S = -S;
|
||||
|
Loading…
Reference in New Issue
Block a user