avcodec/snowdec: Fix integer overflow in header parsing
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Nov 2017 20:20:05 +0000 (21:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 22:19:14 +0000 (23:19 +0100)
commit5f58877bd92989235be5220be42286fd64b4ec98
tree01d44a01677d908d81a4c32688421b1e8c8d6a56
parentd857f1035bfe59e99c3bb520523144d0f3db815b
avcodec/snowdec: Fix integer overflow in header parsing

Fixes: 3984/clusterfuzz-testcase-minimized-5265759929368576
Fixes: runtime error: signed integer overflow: -1085585801 + -1094995529 cannot be represented in type 'int'

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