mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix SCSI INQUIRY decoding when length doesn't take in account first bytes.
This commit is contained in:
@@ -67,7 +67,7 @@ namespace DiscImageChef.Decoders.SCSI
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(SCSIInquiryResponse.Length < SCSIInquiryResponse[4] + 5)
|
if(SCSIInquiryResponse.Length < SCSIInquiryResponse[4] + 5 && SCSIInquiryResponse.Length != SCSIInquiryResponse[4])
|
||||||
{
|
{
|
||||||
DicConsole.DebugWriteLine("SCSI INQUIRY decoder",
|
DicConsole.DebugWriteLine("SCSI INQUIRY decoder",
|
||||||
"INQUIRY response length ({0} bytes) is different than specified in length field ({1} bytes), decoded data can be incorrect, not decoding.",
|
"INQUIRY response length ({0} bytes) is different than specified in length field ({1} bytes), decoded data can be incorrect, not decoding.",
|
||||||
|
|||||||
Reference in New Issue
Block a user