diff --git a/DiscImageChef.Filesystems/ISO9660/Info.cs b/DiscImageChef.Filesystems/ISO9660/Info.cs index b7afcd9a..bef7e5d6 100644 --- a/DiscImageChef.Filesystems/ISO9660/Info.cs +++ b/DiscImageChef.Filesystems/ISO9660/Info.cs @@ -254,7 +254,7 @@ namespace DiscImageChef.Filesystems.ISO9660 } } - byte[] rootDir = imagePlugin.ReadSectors(rootLocation + partition.Start, rootSize); + byte[] rootDir = new byte[0]; int rootOff = 0; bool xaExtensions = false; bool apple = false; @@ -267,6 +267,9 @@ namespace DiscImageChef.Filesystems.ISO9660 List refareas = new List(); StringBuilder suspInformation = new StringBuilder(); + if(rootLocation + rootSize < imagePlugin.Info.Sectors) + rootDir = imagePlugin.ReadSectors(rootLocation, rootSize); + BigEndianBitConverter.IsLittleEndian = BitConverter.IsLittleEndian; // Walk thru root directory to see system area extensions in use