mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* ScsiEvpd.cs: Take care of null returns on EVPD decoding.
* ViewReport.aspx.cs: Catch exceptions on USB descriptor reading.
This commit is contained in:
@@ -471,7 +471,14 @@ namespace DiscImageChef.Server
|
||||
if(_line[0] == '\t')
|
||||
continue;
|
||||
|
||||
number = Convert.ToUInt16(_line.Substring(0, 4), 16);
|
||||
try
|
||||
{
|
||||
number = Convert.ToUInt16(_line.Substring(0, 4), 16);
|
||||
}
|
||||
catch(FormatException)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(number == vendor)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user