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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit4019c2a67c6aafeadb93aa8fc741cc3915817597
treeebea6fa8431772519d88bb549437018ce4e085ab
parentbb5748ec9d244e22e783e2914b64abf64c0808e3
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