avcodec/dfa: Check dimension against maximum
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Apr 2018 20:04:53 +0000 (22:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commite49e8259df9121798989a5e22a0cb5bd9d9d1d33
tree8e62a5cbd1b710152a837afb0d28325ccc76eb47
parent3009bf0be645c184dd83fb6959579b8289c4d54f
avcodec/dfa: Check dimension against maximum

The headers from where the dimensions are read in actual files
are limited to 16bit per component.

Fixes: Timeout
Fixes: 6305/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DFA_fuzzer-4824270749302784

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 9d5a4fcfbb51edc871bdb1c67a88223cbfb1c0e4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dfa.c