avcodec/h264addpx_template: Fixes integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jan 2018 02:48:43 +0000 (03:48 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commitabb7498c3f00482ebf35fd7c02f315de0344b2e7
treea7ed2fcb706fd997fdfc7686a53bdc359d0926e6
parent6164ca476570f5204882177b39f37eef5a2182b6
avcodec/h264addpx_template: Fixes integer overflows

Fixes: signed integer overflow: 512 + 2147483491 cannot be represented in type 'int'
Fixes: 4780/clusterfuzz-testcase-minimized-4709066174627840

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