File libcdio-more-relaxed-from_733.patch of Package libcdio.24379
From 93a3fdc55c704f3f9bb20ab15ca8d94330f4ef7f Mon Sep 17 00:00:00 2001
From: Pete Batard <pete@akeo.ie>
Date: Sun, 27 May 2018 22:30:04 +0100
Subject: Switch to using the more relaxed from_733 in _iso9660_dir_to_statbuf
* Done so that libcdio doesn't bail out when processing non-compliant
ISOs such as openSUSE Leap 15.0
---
lib/iso9660/iso9660_fs.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
Index: libcdio-0.94/lib/iso9660/iso9660_fs.c
===================================================================
--- libcdio-0.94.orig/lib/iso9660/iso9660_fs.c
+++ libcdio-0.94/lib/iso9660/iso9660_fs.c
@@ -721,7 +721,6 @@ _iso9660_dir_to_statbuf (iso9660_dir_t *
iso711_t i_fname;
unsigned int stat_len;
iso9660_stat_t *p_stat = NULL;
- bool err;
if (!dir_len) return NULL;
@@ -738,16 +737,8 @@ _iso9660_dir_to_statbuf (iso9660_dir_t *
}
p_stat->type = (p_iso9660_dir->file_flags & ISO_DIRECTORY)
? _STAT_DIR : _STAT_FILE;
- p_stat->lsn = from_733_with_err (p_iso9660_dir->extent, &err);
- if (err) {
- free(p_stat);
- return NULL;
- }
- p_stat->size = from_733_with_err (p_iso9660_dir->size, &err);
- if (err) {
- free(p_stat);
- return NULL;
- }
+ p_stat->lsn = from_733 (p_iso9660_dir->extent);
+ p_stat->size = from_733 (p_iso9660_dir->size);
p_stat->secsize = _cdio_len2blocks (p_stat->size, ISO_BLOCKSIZE);
p_stat->rr.b3_rock = dunno; /*FIXME should do based on mask */
p_stat->b_xa = false;