--- a/src/searching.c +++ b/src/searching.c @@ -641,6 +641,11 @@ length = 0; for(i=0; i 1000 || ptt[i].pgcn < 0) { + 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;