avcodec/hevc_ps: Fix integer overflow with beta/tc offsets
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 30 Jun 2017 14:23:32 +0000 (16:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 13:26:37 +0000 (15:26 +0200)
commit1a21edf7b885df9e48b142b6080c8265a9d3643c
tree5dcbcd5513d83a83ffd7e22e38a5e7b2ad7d708d
parent94c8e53034bc3d5dad6e4f290839e83fc8643154
avcodec/hevc_ps: Fix integer overflow with beta/tc offsets

Fixes: runtime error: signed integer overflow: 2113929216 * 2 cannot be represented in type 'int'
Fixes: 2422/clusterfuzz-testcase-minimized-5242114713583616

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 de54a37c1dfa2817b5838720fac44e82312ccbfd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_ps.c