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>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commitadb0a29111b321357d65d7b8732d6321303410fd
treed5d820a964202334d187cee675a23cc91a1cf69c
parentd664557023040422ba3b43f7051bb932bee79973
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