[FFmpeg-devel] [PATCH] pgssubdec: reset rle_data_len/rle_remaining_len on allocation error

Michael Niedermayer michaelni at gmx.at
Tue Jan 31 16:13:36 EET 2017


On Tue, Jan 31, 2017 at 01:59:38AM +0100, Andreas Cadhalpun wrote:
> The code relies on their validity and otherwise can try to access a NULL
> object->rle pointer, causing segmentation faults.
> 
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/pgssubdec.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

LGTM

please also backport this to the releases

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170131/cb4b8634/attachment.sig>


More information about the ffmpeg-devel mailing list