avcodec/smc: Check input packet size
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Feb 2018 02:40:02 +0000 (03:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Feb 2018 18:59:58 +0000 (19:59 +0100)
commit789a12b140ba2426a1c9bb9ce31a7a4f50d0216a
treef4fdf119b194c8b8e5d570f354e31a16e348c915
parent24a3c45da511c58f550f33db507c3fda50e496af
avcodec/smc: Check input packet size

Fixes: Timeout
Fixes: 6261/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMC_fuzzer-5811309653262336

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