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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit838d02fcff8d08dfe138db572eaff01193f388ab
treee067d362e42b5227ef5776312902468039e1e75a
parent0322f781777d4413bd57815ee9b5a7d6a0cfe716
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>
(cherry picked from commit 08c220d26cff51ca2f6896b65aebfa3accc67290)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/huffyuvdec.c