Do not take as decoded data that has merely returned the SCSI data length header.

This commit is contained in:
2020-03-06 20:39:31 +00:00
parent b7c9b6b1fb
commit 78d0ae75e2
6 changed files with 12 additions and 6 deletions

View File

@@ -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