# HG changeset patch # User rathann # Date 1384217710 0 # Node ID d8ec83537d07e146ebaee52d108fca919f37d7aa # Parent a566d307173d5495dd2456808e128888b48a8a26 Check for out-of-bounds values for pgcn Fixes a crash in dvdnav_describe_title_chapters() with vlc, lsdvd, and other video players caused by an invalid value for pgcn. This occurs with the "Inside Man" DVD. Based on patches by Bryce Harrington and Vincent Mussard diff -r a566d307173d -r d8ec83537d07 searching.c --- a/searching.c Mon Nov 11 23:49:17 2013 +0000 +++ b/searching.c Tue Nov 12 00:55:10 2013 +0000 @@ -616,6 +616,10 @@ length = 0; for(i=0; i ifo->vts_pgcit->nr_of_pgci_srp) { + printerr("PGCN out of bounds."); + continue; + } if (ifo->vts_pgcit->pgci_srp[ptt[i].pgcn-1].pgc_start_byte >= ifo->vts_pgcit->last_byte) { printerr("PGC start out of bounds"); continue;