mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
🐛Fix ISO9660 when root directory is outside of device.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user