avcodec/huffyuvdec: Check input buffer size
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 18:20:10 +0000 (19:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Feb 2018 02:01:30 +0000 (03:01 +0100)
commit08c220d26cff51ca2f6896b65aebfa3accc67290
treede75fbe71f9a580039b2fd7f54ad6a20462fbaa4
parentcb97400f93ba925485ef0af976cd656b90a9ba86
avcodec/huffyuvdec: Check input buffer size

Fixes: Timeout
Fixes: 5487/clusterfuzz-testcase-4696837035393024

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/huffyuvdec.c