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 00:50:01 +0000 (02:50 +0200)
commita5e969dd28c2f6f5b2c322cb1856338f6e206ca1
tree5e5243e6867b36f9b41063f95ba3bd99d0d0c366
parentf6954a1482f3c9d6ce4c0db82c9f9863b3b09d8f
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