Mercurial > libdvdnav.hg
changeset 425:323e54a7f200 src
Prevent segmentation faults in vdnav_describe_title_chapters()
in case of parts with missing PGC.
Patch by Fabian Keil !fk#fabiankeil$de%
author | rathann |
---|---|
date | Thu, 03 Oct 2013 22:19:25 +0000 |
parents | 4219a513c804 |
children | 79921c6bb4e8 |
files | searching.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; i<parts; i++) { uint32_t cellnr, endcellnr; pgc = ifo->vts_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;