Skip il that can't be interpreted
This commit is contained in:
parent
4f2a8602e9
commit
9945e82cb7
@ -11,7 +11,7 @@
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<IncludeSource>true</IncludeSource>
|
||||
<Version>0.0.5</Version>
|
||||
<Version>0.0.6</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
@ -335,9 +335,10 @@ namespace System.Diagnostics
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var rawIL = methodBody?.GetILAsByteArray();
|
||||
if (rawIL == null) continue;
|
||||
|
||||
var reader = new ILReader(rawIL);
|
||||
while (reader.Read(candidateMethod))
|
||||
{
|
||||
@ -357,6 +358,12 @@ namespace System.Diagnostics
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// https://github.com/benaadams/Ben.Demystifier/issues/32
|
||||
// Skip methods where il can't be interpreted
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user