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, 21 Aug 2013 23:44:37 +0000 (01:44 +0200)
commitfde0b7d91c9cbcc427f87c2651f39d0075c66efe
tree3a70af8fbf2caecb91d6dc94a10b6893bfe0c1e1
parentb5f685211cd49dbd5b821f4ff1dc345c9326ff78
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)

Conflicts:

libavcodec/rpza.c
(cherry picked from commit edba432b8b01d68c22e70a508f47553359f59fb5)

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