[DVDnav-discuss] VLC segfault playing DVD
dvdnav.cathy_mcdonald at spamgourmet.com
dvdnav.cathy_mcdonald at spamgourmet.com
Wed Sep 4 04:36:19 CEST 2013
Hi,
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.
Thanks,
Cathy
More information about the DVDnav-discuss
mailing list