avcodec/rpza: Perform pointer advance and checks before using the pointers
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Aug 2013 23:07:32 +0000 (01:07 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 29 Aug 2013 00:13:25 +0000 (02:13 +0200)
commitacac6b0d6951f86d5db8aaeaeb970743d1907852
treec1b561b6ac5df39681d232af6eef721dc4b71fbb
parentdeb8d0d6a121a155b5e396ea5b8da5567ac263f0
avcodec/rpza: Perform pointer advance and checks before using the pointers

Fixes out of array accesses
Fixes Ticket2850

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3819db745da2ac7fb3faacb116788c32f4753f34)

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