dvdsubdec.c: prevent input buffer overflow
authorJindrich Makovicka <makovick@gmail.com>
Sat, 5 Feb 2011 10:39:51 +0000 (11:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Feb 2011 15:56:49 +0000 (16:56 +0100)
commit52b2e95cd9f829b83b879a0694173d4ef1558c46
treead6f3a2f4d5637ba555ef457245b18f9ce362456
parent6a495e986fa4f88ba000bd004b671ae041ebd4f3
dvdsubdec.c: prevent input buffer overflow

In some places, dvbsubdec passes improper input buffer size to
bitstream reading functions, not accounting for reading pointer
updates.

Fixed by using buffer_end - buffer pointer instead of fixed buffer length.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvbsubdec.c