Skip to content

log full instruction on onsupported OpCode#3427

Closed
zed-0xff wants to merge 1 commit intoicsharpcode:masterfrom
zed-0xff:patch-1
Closed

log full instruction on onsupported OpCode#3427
zed-0xff wants to merge 1 commit intoicsharpcode:masterfrom
zed-0xff:patch-1

Conversation

@zed-0xff
Copy link
Copy Markdown

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
Copy Markdown
Member

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

@zed-0xff
Copy link
Copy Markdown
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.

@zed-0xff zed-0xff closed this Nov 4, 2025
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