avcodec/dvdsubdec: fix out of bounds accesses
authorwm4 <nfxjfg@googlemail.com>
Mon, 5 Jan 2015 03:45:26 +0000 (04:45 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Jan 2015 04:03:49 +0000 (05:03 +0100)
commitc9151de7c42553bb145be608df8513c1287f1f24
tree7e620f6a5893df75ade20e912c1a105426d6b4d3
parentbeedeb4399fe5f6d3a9c9fcc4f0d5e856bfd7581
avcodec/dvdsubdec: fix out of bounds accesses

The code blindly trusted buffer offsets read from the file in the RLE
decoder. Explicitly check the offset. Also error out on other RLE
decoding errors.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvdsubdec.c