# HG changeset patch # User rathann # Date 1380838765 0 # Node ID 323e54a7f200640afeb48a18a76e8d58e2491345 # Parent 4219a513c80414f78c012bab93977c3a40c03803 Prevent segmentation faults in vdnav_describe_title_chapters() in case of parts with missing PGC. Patch by Fabian Keil !fk#fabiankeil$de% diff -r 4219a513c804 -r 323e54a7f200 searching.c --- a/searching.c Thu Oct 03 22:10:07 2013 +0000 +++ b/searching.c Thu Oct 03 22:19:25 2013 +0000 @@ -617,6 +617,10 @@ for(i=0; ivts_pgcit->pgci_srp[ptt[i].pgcn-1].pgc; + if (pgc == NULL) { + printerr("PGC missing."); + continue; + } if(ptt[i].pgn > pgc->nr_of_programs) { printerr("WRONG part number."); goto fail;