avcodec/hevc_sei: Fix integer overflows in decode_nal_sei_message()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Dec 2017 16:50:12 +0000 (17:50 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commitf75e2cb0594624859970244b1bae12a5b2035068
tree9d6b47d0030b32a69869f4c258c0623424d71acd
parentd1af42e4b26eddf3424de71702f95fa4698359bd
avcodec/hevc_sei: Fix integer overflows in decode_nal_sei_message()

Fixes: signed integer overflow: 2147483520 + 255 cannot be represented in type 'int'
Fixes: 4554/clusterfuzz-testcase-minimized-4843714515042304

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