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>
Mon, 9 Jul 2018 23:18:52 +0000 (01:18 +0200)
commit11d0464565d1cac24c57ad7c6822fc9db046a057
tree9cb4b084325ffbd33b2c3b333486d7a4391084d9
parentd81e0f925a94a3d4f2a1c85447dc1d938e1e4fe5
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