avcodec/flicvideo: Check frame_size before decrementing
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 16 May 2017 23:12:55 +0000 (01:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 16 May 2017 23:13:46 +0000 (01:13 +0200)
commit355e27e24dc88d6ba8f27501a34925d9d937a399
treeb9623e82ee1d72b4943a343b4ae788c38f118990
parent552adf1dd3a38fb7a1a6109dd2b517d63290f20e
avcodec/flicvideo: Check frame_size before decrementing

Fixes: runtime error: signed integer overflow: -2147483627 - 22 cannot be represented in type 'int'
Fixes: 1637/clusterfuzz-testcase-minimized-5376582493405184

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