avcodec/hevc_ps: fix integer overflow in log2_parallel_merge_level_minus2
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 24 Jul 2017 13:48:37 +0000 (15:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 26 Jul 2017 15:25:17 +0000 (17:25 +0200)
commit665311ab1f9620a48fb2b6fc8883bb6a0a3f916f
treeb308d8e8f5bbd0ca25f098ef72eba04822e97317
parent8c05ac89d3537f26039dfaa60dcd8fb50d68123a
avcodec/hevc_ps: fix integer overflow in log2_parallel_merge_level_minus2

Fixes: runtime error: signed integer overflow: -2147483647 - 2 cannot be represented in type 'int'
Fixes: 2702/clusterfuzz-testcase-minimized-4511932591636480

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