pgssubdec: Check RLE size before copying
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Jul 2014 01:31:19 +0000 (21:31 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 1 Aug 2014 00:13:32 +0000 (02:13 +0200)
commitd98e6c5d5d80c1dfe0c30f2e73d41a3aea0b920d
treef36824bc772fa0c6bd8c4efc8f7e702d3f53d6fa
parenta0ce85ac7de098d3f9b53b51b77a09bad700a011
pgssubdec: Check RLE size before copying

Make sure the buffer size does not exceed the expected
RLE size.

Prevent an out of array bound write.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Bug-Id: CVE-2013-0852

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/pgssubdec.c