From b7dabe699a160911988f9e4498229b830db59b20 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 31 Dec 2024 06:06:29 +0000 Subject: [PATCH] [ISO9660] Do not declare the presence of MODE 2 sub-headers based on long sector content, but on tag presence on media image. --- Aaru.Filesystems/ISO9660/Xattr.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Aaru.Filesystems/ISO9660/Xattr.cs b/Aaru.Filesystems/ISO9660/Xattr.cs index 8c91b5513..c5bc30e04 100644 --- a/Aaru.Filesystems/ISO9660/Xattr.cs +++ b/Aaru.Filesystems/ISO9660/Xattr.cs @@ -74,7 +74,9 @@ public sealed partial class ISO9660 if(entry.Flags.HasFlag(FileFlags.Directory) || entry.Extents == null || entry.Extents.Count == 0) return ErrorNumber.NoError; - ErrorNumber errno = _image.ReadSectorLong(entry.Extents[0].extent * _blockSize / 2048, out byte[] sector); + ErrorNumber errno = _image.ReadSectorTag(entry.Extents[0].extent * _blockSize / 2048, + SectorTagType.CdSectorSubHeader, + out byte[] sector); if(errno != ErrorNumber.NoError) return errno;