[libdvbpsi-devel] [PATCH] SEGV fixed in dvbpsi_decoder_psi_section_add
Jean-Paul Saman
jpsaman at videolan.org
Tue Sep 4 13:34:24 CEST 2012
Robert,
On Mon, Sep 3, 2012 at 3:07 PM, Roberto Corno <corno.roberto at gmail.com> wrote:
> SEGV happens within dvbpsi_decoder_psi_section_add when p->i_number ==
> p_section->i_number and p_prev == NULL.
> It's the first branch of the while(p) loop.
> I got it with a heavily degraded transport stream, where a lot of CC error
> occur.
> I've added the check for p_prev==NULL
> Patch attached.
Your patch ignores the new section instead of replacing the section
with the same number.
The caller could therefor leak the section pointer. Please try this
patch instead.
Kind regards,
Jean-Paul Saman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-src-dvbpsi.c-fix-segmentation-fault-in-dvbpsi_decode.patch
Type: application/octet-stream
Size: 1783 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/libdvbpsi-devel/attachments/20120904/25e4b302/attachment.obj>
More information about the libdvbpsi-devel
mailing list