Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log full instruction on onsupported OpCode #3427

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zed-0xff
Copy link

provides more context on analyzing obfuscated binaries for instance:
before:

((delegate*<Array, RuntimeFieldHandle, void>)Class195.methods[1])(array, (RuntimeFieldHandle)
/*OpCode not supported: LdMemberToken*/);

after:

((delegate*<Array, RuntimeFieldHandle, void>)Class195.methods[1])(array, (RuntimeFieldHandle)
/*OpCode not supported: ldmembertoken method_5678 at IL_000d*/);

PS sorry I don't have VS to run tests ICSharpCode.Decompiler.Tests/TestCases/Ugly/NoArrayInitializers.Expected.cs should be fixed too.

Link to issue(s) this covers

Problem

Link to, or brief information about the issue

Solution

  • Any comments on the approach taken, its consistency with surrounding code, etc.
  • Which part of this PR is most in need of attention/improvement?
  • At least one test covering the code changed

provides more context on analyzing obfuscated binaries for instance
@siegfriedpammer
Copy link
Member

You don't need VS to run the tests, dotnet test ILSpy.sln should work.

@zed-0xff
Copy link
Author

  ICSharpCode.Decompiler.Tests test succeeded with 1 warning(s) (1,1s)
    /usr/local/share/dotnet/sdk/9.0.101/Microsoft.TestPlatform.targets(48,5): warning : No test is available in /<snip>/ICSharpCode.Decompiler.Tests/bin/Debug/net8.0-windows/ICSharpCode.Decompiler.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants