Exit early on invalid wrappers

This commit is contained in:
Matt Nadareski
2025-09-20 16:03:36 -04:00
parent 303fa314e6
commit bca5ec48d5

View File

@@ -304,6 +304,11 @@ namespace BinaryObjectScanner
// Get the wrapper, if possible
var wrapper = WrapperFactory.CreateWrapper(fileType, stream);
if (wrapper == null)
{
if (_includeDebug) Console.WriteLine($"{fileName} not a scannable file type, skipping...");
return [];
}
#region Non-Archive File Types