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

@@ -55,7 +55,8 @@ namespace Aaru.Decoders.CD
public static CDFullTOC? Decode(byte[] CDFullTOCResponse)
{
if(CDFullTOCResponse == null)
if(CDFullTOCResponse == null ||
CDFullTOCResponse.Length <= 4)
return null;
var decoded = new CDFullTOC