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, 9 Jan 2015 16:19:10 +0000 (17:19 +0100)
commite0a12b3dc3a252412e91416ebbbf9449e82e4bd0
treee4a54db4340dd74318af1310a539520d58745ce9
parent252ba4a9259fcaf18f5f340da364e7d536bc6788
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