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, 13 Nov 2017 18:54:20 +0000 (19:54 +0100)
commitc897a9285846b6a072b9650976afd4f091b7a71f
tree9ac3f36c5e316cdbe9170129140e227c4068bb0f
parent43171a2a738f5114768d34a7278e56e5fde714bc
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>
libavcodec/snowdec.c