avcodec/agm: Fix overflow of signed shift
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 17:45:29 +0000 (19:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Jul 2019 19:42:38 +0000 (21:42 +0200)
commit6ebbfb377f7b6dcbf6a5c85b10109e838bd6e675
treed0dfa09a857006c2edd210323bf4ea07376c4e8b
parent7d3581e6bbec309ca0cc617c37cf6e87547764ef
avcodec/agm: Fix overflow of signed shift

Fixes: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 15328/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5637545171353600

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/agm.c