mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-08 18:06:34 +00:00
Exit early on invalid wrappers
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user