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>
Thu, 28 Dec 2017 19:21:24 +0000 (20:21 +0100)
commita3df874b5a88c782dddba4880a8d52b4b9730949
tree8b336c9a2ec741ab19f19ae67246f9240fe39969
parent49703a39f394296ca44f8003f03d9eea3eff34d6
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