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:24 +0000 (19:37 +0200)
commitb59d6183c4ffc33ae920220eb8ef75821ca425e3
tree123dbdb4706588b46e6a08864fd12c2c5bc38a4a
parenta371850d58e0b988fd4c10faec20bc649ad02b9c
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