avcodec/hevc_ps: Check log2_sao_offset_scale_*
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Jan 2018 02:15:23 +0000 (03:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 22:47:16 +0000 (23:47 +0100)
commit4abdd6535628b0c5ea468c30329aa237d55dd25b
treeb43eb0db0841ee6dd04147b687f64d878175b985
parentb40576a9a436aa9b6723f0c0c2501a06bcc45c8d
avcodec/hevc_ps: Check log2_sao_offset_scale_*

Fixes: 4868/clusterfuzz-testcase-minimized-6236542906400768
Fixes: runtime error: shift exponent 126 is too large for 32-bit type 'int'

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4a75a75c62efc645ec28444e4675c325b8f2bb1a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_ps.c