avcodec/gdv: Check available space before reading palette
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 11 Aug 2017 17:27:02 +0000 (19:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 11 Aug 2017 17:27:52 +0000 (19:27 +0200)
commit0561bd2fc2bff0dbe651d5998e9f129c43d25eb3
tree51378b22f8a1162edf514a2ce103766c77dcd508
parent62702eebded6c6341d214405812a981f80e46ea2
avcodec/gdv: Check available space before reading palette

Fixes: Timeout
Fixes: 2926/clusterfuzz-testcase-498711001458278

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/gdv.c