mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Do not take as decoded data that has merely returned the SCSI data length header.
This commit is contained in:
@@ -47,7 +47,8 @@ namespace Aaru.Decoders.CD
|
||||
{
|
||||
public static CDSessionInfo? Decode(byte[] CDSessionInfoResponse)
|
||||
{
|
||||
if(CDSessionInfoResponse == null)
|
||||
if(CDSessionInfoResponse == null ||
|
||||
CDSessionInfoResponse.Length <= 4)
|
||||
return null;
|
||||
|
||||
var decoded = new CDSessionInfo
|
||||
|
||||
Reference in New Issue
Block a user