[DVDnav-discuss] VLC segfault playing DVD

Erik Hovland erik at hovland.org
Wed Sep 4 19:21:11 CEST 2013


Suggested patch.

Good find Cathy!

E

On Wed, Sep 4, 2013 at 1:33 AM, Paul Menzel
<paulepanter at users.sourceforge.net> wrote:
> Dear Cathy,
>
>
> Am Mittwoch, den 04.09.2013, 12:36 +1000 schrieb dvdnav.cathy_mcdonald at spamgourmet.com:
>
>> I've tracked down a bug which is causing VLC to crash when playing the
>> Jack Reacher DVD. Is this the right forum for submitting a patch?
>>
>> I checked out the source from
>> svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav but I've also seen a later
>> version of the file I want to change at
>> https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/libdvdnav/precise-proposed/view/head:/src/searching.c
>> <https://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/precise/libdvdnav/precise-proposed/view/head:/src/searching.c>
>> so I'm confused about which is the latest version of the code and which
>> repository is the source of truth for a start.
>>
>> I notice that the changes include a bunch of new sanity checks but not
>> the one which fixes my issue.
>>
>> The bug I found produces a segfault in the
>> dvdnav_describe_title_chapters function in searching.c. It fails at the line
>>    cellnr = pgc->program_map[ptt[i].pgn-1];
>> because for some reason pgc->program_map is NULL. When I add a check for
>> this condition like
>>      if(pgc->program_map == NULL) {
>>        printerr("Program map missing.");
>>        continue;
>>      }
>> the DVD will play.
>
> nice find! Please send the patch here. I do not know, if DVDs are
> allowed to do that, but they do not seem to care anyway.
>
> Please send a patch for the Subversion repository with a commit message
> detailing what you found above (program versions too) and the exact DVD
> you have (region).
>
>
> Thanks,
>
> Paul
>
> _______________________________________________
> DVDnav-discuss mailing list
> DVDnav-discuss at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss



-- 
Erik Hovland
erik at hovland.org
http://hovland.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-sure-program_map-is-not-NULL.patch
Type: application/octet-stream
Size: 939 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/attachments/20130904/b9be1965/attachment.obj>


More information about the DVDnav-discuss mailing list