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>
Sat, 5 Aug 2017 21:56:52 +0000 (23:56 +0200)
commit1f53bde6d817ae13a47748f321adbdfa79e15982
tree2c6a1f9e6e359851314e0461d0dadec7d74b13ba
parent949debd1d1df3a96315b3a3083831162845c1188
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>
libavcodec/h264_slice.c