🐛Fix ISO9660 when root directory is outside of device.

This commit is contained in:
2018-02-08 02:59:42 +00:00
parent 4a710822a0
commit bcf016f49a

View File

@@ -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<byte[]> refareas = new List<byte[]>();
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