* DiscImageChef.Decoders/SCSI/Sense.cs:

Additional length may be bigger than provided buffer.

	* DiscImageChef/Commands/MediaInfo.cs:
	  Implement detection of medium not present and waiting for
	  drive to become ready.
This commit is contained in:
2015-12-04 08:12:20 +00:00
parent 96d256c6e8
commit 8e0d254ed2
4 changed files with 56 additions and 3 deletions

View File

@@ -304,9 +304,6 @@ namespace DiscImageChef.Decoders.SCSI
decoded.Information = (uint)((sense[3] << 24) + (sense[4] << 16) + (sense[5] << 8) + sense[6]);
decoded.AdditionalLength = sense[7];
if (sense.Length < decoded.AdditionalLength + 8)
return decoded;
if(sense.Length >= 12)
decoded.CommandSpecific = (uint)((sense[8] << 24) + (sense[9] << 16) + (sense[10] << 8) + sense[11]);