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

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