mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Skip invalid SCSI EVPD page 80h if they contain non-ASCII characters.
This commit is contained in:
@@ -102,6 +102,10 @@ namespace Aaru.Decoders.SCSI
|
||||
|
||||
Array.Copy(page, 4, ascii, 0, page.Length - 4);
|
||||
|
||||
for(int i = 0; i < ascii.Length - 1; i++)
|
||||
if(ascii[i] < 0x20)
|
||||
return null;
|
||||
|
||||
return StringHandlers.CToString(ascii);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user