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>
Mon, 12 Feb 2018 02:02:29 +0000 (03:02 +0100)
commitc402b672b7641e9002868ee26be82a01048f7aed
tree2426c6d4a91a2ad46e7e2dc2ba92d8d28c5fa858
parent263bddf78159668383afadf1c2db73f74b265377
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