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>
Wed, 28 Aug 2013 23:29:35 +0000 (01:29 +0200)
commit7549bcb295f04071dcbfc7a412e0618fb38dd8a3
tree14b09759c436b183fc1c8b24c52ea40e03cfcf32
parent65753697efdb9e4dd61f4ba582bd04476acdc69a
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