avcodec/dirac_vlc: Fix invalid shift in ff_dirac_golomb_read_32bit()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Sep 2017 17:56:12 +0000 (19:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 2 Sep 2017 21:50:28 +0000 (23:50 +0200)
commitc595139f1fdb5ce5ee128c317ed9e4e836282436
treefff16d012e214fc251037ff0adc33de481d09f37
parentf71cd44147e7a914f80fcfacca46c9e7b0374362
avcodec/dirac_vlc: Fix invalid shift in ff_dirac_golomb_read_32bit()

Fixes: runtime error: shift exponent 64 is too large for 64-bit type 'residual' (aka 'unsigned long')
Fixes: 2838/clusterfuzz-testcase-minimized-6260066086813696

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