# HG changeset patch # User rathann # Date 1380841375 0 # Node ID 43c9bfd418d13545a565c81eba1a17f20a360c1f # Parent 2e6f41e04ca178148ebc81e9052ecb5603173602 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% diff -r 2e6f41e04ca1 -r 43c9bfd418d1 searching.c --- a/searching.c Thu Oct 03 22:43:52 2013 +0000 +++ b/searching.c Thu Oct 03 23:02:55 2013 +0000 @@ -625,6 +625,10 @@ 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;