avcodec/xsubdec: Check that RLE coded image and colors fit in the buffer
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 May 2017 22:20:25 +0000 (00:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 May 2017 22:21:25 +0000 (00:21 +0200)
commit2002436b0c914e18eda4f45ef816b14501a1dbae
treedbf7521d3f87b2cbe91866fb61cbd586023e6ab6
parentcfd1ecdc0bb039014fbb40b45edb88121bad92f9
avcodec/xsubdec: Check that RLE coded image and colors fit in the buffer

Fixes: Timeout
Fixes: 1747/clusterfuzz-testcase-minimized-6035451213250560

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