avcodec/h264_slice: Fix overflow in slice offset
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Aug 2017 00:41:05 +0000 (02:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Aug 2017 17:37:25 +0000 (19:37 +0200)
commitf236601e29b986a547d68aa3248e06ffbeee1e39
tree4a13667bb56e6a1fd143b40be00b30226369ee5f
parentf0f45d84045307eeca5d0ec950ddcea702c68997
avcodec/h264_slice: Fix overflow in slice offset

Fixes: runtime error: signed integer overflow: 1610612736 * 2 cannot be represented in type 'int'
Fixes: 2817/clusterfuzz-testcase-minimized-5289691240726528

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