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>
Sat, 24 Feb 2018 03:50:55 +0000 (04:50 +0100)
commit0293663483ab5dbfff23602a62800d84e021b33c
treedc0170281f24c98af72cfe5c81dffa76c3575a13
parentb141902872bbe5d9389ee9f4fddbb87698c86689
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>
libavcodec/smc.c