avcodec/dirac_vlc: limit res_bits in APPEND_RESIDUE()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 13:51:45 +0000 (15:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 16:55:47 +0000 (18:55 +0200)
commitd98d29a775d6de9357731fec872642644e57b233
treea860ff2128cefc38e9144784101a63ff1d7f606c
parent4d41db7a31db0c426294ee692fb816faba39eba3
avcodec/dirac_vlc: limit res_bits in APPEND_RESIDUE()

Fixes: runtime error: left shift of 1073741838 by 1 places cannot be represented in type 'int32_t' (aka 'int')
Fixes: 3279/clusterfuzz-testcase-minimized-4564805744590848

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