Author: rathann Date: Fri Oct 4 01:02:55 2013 New Revision: 1265 Log: Make sure program_map is not NULL. pgc->program_map should be checked before dereferencing. On the DVD "Jack Reacher" this was discovered as a problem. Bug discovery and suggested fix given by Cathy McDonald. Thanks! Patch by Erik Hovland !erik#hovland$org% Modified: trunk/libdvdnav/src/searching.c Modified: trunk/libdvdnav/src/searching.c ============================================================================== --- trunk/libdvdnav/src/searching.c Fri Oct 4 00:43:52 2013 (r1264) +++ trunk/libdvdnav/src/searching.c Fri Oct 4 01:02:55 2013 (r1265) @@ -625,6 +625,10 @@ uint32_t dvdnav_describe_title_chapters( printerr("PGC missing."); continue; } + if (pgc->program_map == NULL) { + printerr("Program map missing."); + continue; + } if(ptt[i].pgn > pgc->nr_of_programs) { printerr("WRONG part number."); goto fail;
participants (1)
-
rathann