mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Do not try to read DiscJuggler descriptors if there are none.
This commit is contained in:
@@ -58,8 +58,9 @@ namespace Aaru.DiscImages
|
||||
_imageStream.Read(descriptor, 0, dscLen);
|
||||
|
||||
// Sessions
|
||||
if(descriptor[0] > 99 ||
|
||||
descriptor[0] == 0)
|
||||
if(descriptor.Length < 1 ||
|
||||
descriptor[0] > 99 ||
|
||||
descriptor[0] == 0)
|
||||
return false;
|
||||
|
||||
// Seems all sessions start with this data
|
||||
|
||||
Reference in New Issue
Block a user