mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-17 14:25:12 +00:00
Undo the wrapped NE issues
This commit is contained in:
@@ -73,18 +73,9 @@ namespace BinaryObjectScanner.Protection
|
||||
public string? CheckExecutable(string file, NewExecutable nex, bool includeDebug)
|
||||
{
|
||||
// TODO: Don't read entire file
|
||||
byte[]? data;
|
||||
try
|
||||
{
|
||||
data = nex.ReadArbitraryRange();
|
||||
if (data == null)
|
||||
return null;
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Ignore errors reading ranges
|
||||
byte[]? data = nex.ReadArbitraryRange();
|
||||
if (data == null)
|
||||
return null;
|
||||
}
|
||||
|
||||
// TODO: Figure out what NE section this lives in
|
||||
var neMatchSets = new List<ContentMatchSet>
|
||||
|
||||
@@ -52,18 +52,9 @@ namespace BinaryObjectScanner.Protection
|
||||
}
|
||||
|
||||
// TODO: Don't read entire file
|
||||
byte[]? data;
|
||||
try
|
||||
{
|
||||
data = nex.ReadArbitraryRange();
|
||||
if (data == null)
|
||||
return null;
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Ignore errors reading ranges
|
||||
byte[]? data = nex.ReadArbitraryRange();
|
||||
if (data == null)
|
||||
return null;
|
||||
}
|
||||
|
||||
var neMatchSets = new List<ContentMatchSet>
|
||||
{
|
||||
|
||||
@@ -41,18 +41,9 @@ namespace BinaryObjectScanner.Protection
|
||||
public string? CheckExecutable(string file, NewExecutable nex, bool includeDebug)
|
||||
{
|
||||
// TODO: Don't read entire file
|
||||
byte[]? data;
|
||||
try
|
||||
{
|
||||
data = nex.ReadArbitraryRange();
|
||||
if (data == null)
|
||||
return null;
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Ignore errors reading ranges
|
||||
byte[]? data = nex.ReadArbitraryRange();
|
||||
if (data == null)
|
||||
return null;
|
||||
}
|
||||
|
||||
// TODO: Figure out what NE section this lives in
|
||||
var neMatchSets = new List<ContentMatchSet>
|
||||
|
||||
Reference in New Issue
Block a user