summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorZeeshan Ali (Khattak)2013-02-11 22:22:11 +0100
committerKarel Zak2013-02-14 10:54:27 +0100
commitfbafb98c505e915ddcb63fe365940f34a047faea (patch)
treede81d13a85800990f8b8561b46fc4fb5f70a5939 /libblkid
parentbuild-sys: add package url to AC_INIT (diff)
downloadkernel-qcow2-util-linux-fbafb98c505e915ddcb63fe365940f34a047faea.tar.gz
kernel-qcow2-util-linux-fbafb98c505e915ddcb63fe365940f34a047faea.tar.xz
kernel-qcow2-util-linux-fbafb98c505e915ddcb63fe365940f34a047faea.zip
libblkid: Don't keep reading same sector of ISO
We were reading the same sector over and over again when parsing ISO9660. This patches fixes it.
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/iso9660.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/iso9660.c b/libblkid/src/superblocks/iso9660.c
index f7d2b760a..33a8597ed 100644
--- a/libblkid/src/superblocks/iso9660.c
+++ b/libblkid/src/superblocks/iso9660.c
@@ -167,8 +167,10 @@ static int probe_iso9660(blkid_probe pr, const struct blkid_idmag *mag)
if (iso == NULL || iso->vd_type == ISO_VD_END)
break;
- if (iso->vd_type != ISO_VD_SUPPLEMENTARY)
+ if (iso->vd_type != ISO_VD_SUPPLEMENTARY) {
+ off += ISO_SECTOR_SIZE;
continue;
+ }
if (memcmp(iso->escape_sequences, "%/@", 3) == 0 ||
memcmp(iso->escape_sequences, "%/C", 3) == 0 ||