avcodec/alsdec: Check k from being outside what our implementation can handle
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 25 Aug 2019 16:22:50 +0000 (18:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Sep 2019 20:43:14 +0000 (22:43 +0200)
commite1255789941d213a8e193469d0687946c9fa4a63
treeb54e16e12855debafbf0efa66e2ae6c2121762ed
parentf1192736494a5b16717de66da4a3d3c6af0e9a7a
avcodec/alsdec: Check k from being outside what our implementation can handle

The specification does not seem to list what the maximum valid
value is

Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int'
Fixes: 16268/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5638164544225280

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c