Fix deserialization issue for CFB

This commit is contained in:
Matt Nadareski
2025-07-30 11:36:10 -04:00
parent 589214ea38
commit a818a8af0a
3 changed files with 5 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ namespace BinaryObjectScanner.Data
}
catch (ReflectionTypeLoadException rtle)
{
assemblyTypes = [.. rtle.Types];
assemblyTypes = [.. rtle!.Types];
}
// Get information from the type param

View File

@@ -29,6 +29,9 @@ namespace BinaryObjectScanner.FileType
{
// Get a wrapper for the CFB
var model = Deserialize(stream);
if (model == null)
return false;
var cfb = new SabreTools.Serialization.Wrappers.CFB(model, stream);
if (cfb?.Model == null)
return false;

View File

@@ -57,7 +57,7 @@ Below is a list of protections detected by BinaryObjectScanner. The two columns
| AegiSoft License Manager | True | True | |
| Alpha-DVD | False | True | Unconfirmed¹ |
| Alpha-ROM | True | False | |
| Armadillo | True | False | |
| Armadillo | True | False | |
| Bitpool | False | True | |
| ByteShield | True | True | |
| C-Dilla License Management Solution / CD-Secure / CD-Compress | True | True | |