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>
Wed, 31 Jan 2018 21:56:15 +0000 (22:56 +0100)
commit82fb8dc076f7284f43b89ff177cb145951221947
treecd4c9dc01c844285712a85ae4634facc610a388e
parent2885e45eb4674e945cc508257bfa389ec73e8dc7
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