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, 16 Jul 2018 17:06:26 +0000 (19:06 +0200)
commit45f03502c93dc09e6f9410f601cea4b00c7827d4
tree8ee179ce8fda972a0b17cf485cef0db8fcc145d8
parent5d42300731b1ffdd52c27e198bb724f2c3918f23
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