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>
Fri, 13 Mar 2015 16:06:08 +0000 (17:06 +0100)
commit1b9a62c357b1e0045b5c1eb6fb6e5f3cdbd979ce
tree075638ede6339400007f1033fa7cfa288a011fc6
parent93c9f1b97cdd898699a47751a39ae6fbae87d49e
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>
(cherry picked from commit c9151de7c42553bb145be608df8513c1287f1f24)

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