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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit014ba5c73758298366feda73e9f6c97a5af860e1
treebd355ac2019955da0121d312c87975c255360826
parentbf7715fd29d5701d68379a37c59465096717ed15
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