Skip to content

Commit 7cebc5a

Browse files
committed
avcodec/wavpack: Fix runtime error: shift exponent 32 is too large for 32-bit type 'int'
Fixes: 822/clusterfuzz-testcase-4873433189974016 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <[email protected]>
1 parent acdacb1 commit 7cebc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavcodec/wavpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
846846
continue;
847847
}
848848
bytestream2_get_buffer(&gb, val, 4);
849-
if (val[0] > 32) {
849+
if (val[0] > 31) {
850850
av_log(avctx, AV_LOG_ERROR,
851851
"Invalid INT32INFO, extra_bits = %d (> 32)\n", val[0]);
852852
continue;

0 commit comments

Comments
 (0)