avcodec/jpeglsdec: check shift for values that cause overflow later
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Feb 2017 22:13:24 +0000 (23:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Feb 2017 23:38:45 +0000 (00:38 +0100)
commite98dfeb27c2a82673d7f1782705f6694ec9062ca
tree86e3d2cd0c82d81072b2f30e8473a04bff42ae30
parent76ba09d18245a2a41dc5f93a60fd00cdf358cb1f
avcodec/jpeglsdec: check shift for values that cause overflow later

Fixes: 657/clusterfuzz-testcase-6674741433729024
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeglsdec.c