[libdvdnav-devel] [Git][videolan/libdvdread][master] ifo_read: reject too many still video groups

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Jun 22 13:53:56 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread


Commits:
27f2a2c6 by Saifelden Mohamed Ismail at 2026-06-22T16:34:32+03:00
ifo_read: reject too many still video groups

- - - - -


1 changed file:

- src/ifo_read.c


Changes:

=====================================
src/ifo_read.c
=====================================
@@ -1035,6 +1035,13 @@ static int ifoRead_ASVS(ifo_handle_t *ifofile){
   B2N_16(asvs_mat->specification_version);
   B2N_16(asvs_mat->length_sectors);
 
+  /* a broken disc could ask for more groups than fit */
+  if(asvs_mat->asvs_nr_groups > ASVS_GROUP_MAX_SIZE) {
+    free(ifofile->asvs_mat);
+    ifofile->asvs_mat = NULL;
+    return 0;
+  }
+
   int total_nr_frames = 0;
   for (int i = 0; i < asvs_mat->asvs_nr_groups; i++ ) {
     B2N_16(asvs_mat->asvs_groups[i].start_frame);



View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/27f2a2c695ebab430955f67b763f3bf7ed4233b6

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/27f2a2c695ebab430955f67b763f3bf7ed4233b6
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the libdvdnav-devel mailing list