[PATCH] Check for valid number of cells

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
beandog
Posts: 7
Joined: Tue Oct 12, 2010 5:08 pm

[PATCH] Check for valid number of cells

Post by beandog »

Fixes a segfault when running "--scan --no-dvdnav" against Disney's "The Black Caudron" DVD since tracks have garbage on them.

Code: Select all

Index: dvd.c
===================================================================
--- dvd.c	(revision 6516)
+++ dvd.c	(working copy)
@@ -743,6 +743,9 @@
 
     count = f * d->title_block_count;
 
+    if(!d->cell_end)
+      return 0;
+
     for( i = d->cell_start; i <= d->cell_end; i++ )
     {
         sizeCell = d->pgc->cell_playback[i].last_sector + 1 -

beandog
Posts: 7
Joined: Tue Oct 12, 2010 5:08 pm

Re: [PATCH] Check for valid number of cells

Post by beandog »

For reference, all the other issues I've run into (and worked around) with this DVD. Same issues of Disney DVDs with 99 tracks would most likely apply.

http://dvds.beandog.org/doku.php/black_cauldron_the

Post Reply