avcodec/h264_direct: Fix runtime error: signed integer overflow: -9 - 2147483647...
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Mar 2017 02:02:50 +0000 (03:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Mar 2017 00:33:08 +0000 (01:33 +0100)
commita84d610b372c63e8a48a9ed7c038a2954097512c
tree55b25f954dd2b764abc474ae3efb2c7f2db11364
parent5d996b56499f00f80b02a41bab3d6b7349e36e9d
avcodec/h264_direct: Fix runtime error: signed integer overflow: -9 - 2147483647 cannot be represented in type 'int'

Fixes: 864/clusterfuzz-testcase-4774385942528000

See: [FFmpeg-devel] [PATCH 1/2] avcodec/h264_direct: Fix runtime error: signed integer overflow: 2147483647 - -14133 cannot be represented in type 'int'
See: [FFmpeg-devel] [PATCH 2/2] avcodec/h264_direct: Fix runtime error: signed integer overflow: -9 - 2147483647 cannot be represented in type 'int'

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_direct.c