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:06:29 +0000 (17:06 +0200)
commit74c1c22d7f0d25f527ed2ebf62493be5ad52c972
tree4a89735f2b0ac6c1b0f75b0e903eda5e04f16d4b
parentc220fe008c5a3f7c652dbd03ce2a58e392e59e19
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>
libavcodec/hevc_ps.c