On 2020.05.23 14:41, Thomas Schmitt wrote:
diff --git a/lib/iso9660/iso9660_fs.c b/lib/iso9660/iso9660_fs.c
index ed2d158..48e098f 100644
--- a/lib/iso9660/iso9660_fs.c
+++ b/lib/iso9660/iso9660_fs.c
@@ -844,7 +844,9 @@ _iso9660_dir_to_statbuf (iso9660_dir_t *p_iso9660_dir,
    {
      /* Check if this is the last part of a multiextent file */
      if (!first_extent) {
-      if (strcmp(p_stat->filename, &p_iso9660_dir->filename.str[1]) != 0) {
+      if (strlen(p_stat->filename) != i_fname ||
+          strncmp(p_stat->filename, &p_iso9660_dir->filename.str[1], i_fname)
+         != 0) {
         cdio_warn("Non consecutive multiextent file parts for '%s'",
                   p_stat->filename);
         goto fail;

=========================================================================

Good call!

I never saw that one with the ISOs I tested, but then again, I haven't tested an ISO with non-consecutive extents.

I have applied your patch, and also applied a second one that fixes the use of staging macros I failed to revert (At one stage, I was using LIBCDIO_API_2020 instead of DO_NOT_WANT_COMPATIBILITY, and I overlooked changing some of these back).

If you pull the branch, you should have these 2 patches now.

Regards,

/Pete

Reply via email to