pgssubdec: reset rle_data_len/rle_remaining_len on allocation error
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 31 Jan 2017 00:55:44 +0000 (01:55 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 1 Feb 2017 01:29:08 +0000 (02:29 +0100)
commitf7e18dea7ad2fd1ec70dd36215064d59b7fc561e
tree9b7995682a41b4e2991487d47fd506f8aa45dd35
parent16c0d8aa46b6a206d14f1d1010b7487809d54e5f
pgssubdec: reset rle_data_len/rle_remaining_len on allocation error

The code relies on their validity and otherwise can try to access a NULL
object->rle pointer, causing segmentation faults.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 842e98b4d83d8cf297e2bc2761f1f47eb89e49e4)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/pgssubdec.c