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>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit7de06077c9fb2e85fbcb48929ff118662d242ca3
tree0e803bfe7ebb63d05376884e9423df798bf9807c
parentd8fb143546da2142e21a845a3d493d200267b8ec
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