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

Using WinAFL on native code that part of .NET program. #453

Open
ofir-tan opened this issue Dec 22, 2024 · 0 comments
Open

Using WinAFL on native code that part of .NET program. #453

ofir-tan opened this issue Dec 22, 2024 · 0 comments

Comments

@ofir-tan
Copy link

ofir-tan commented Dec 22, 2024

My .NET program initializes by starting the backend using wrapper.dll, which contains mixed code (managed and unmanaged). The managed code is solely used as an interface to interact with the unmanaged code. After completing the necessary initialization and configuration of the native code, the program transitions to running exclusively with native code from wrapper.dll and additional native DLLs included in the program.

For example, let's say my target is coverage_target.dll, which is purely native. The issue arises when I attempt to run the program—it fails due to the inability to load wrapper.dll:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Wrapper.dll' or one of its dependencies. Attempt to access invalid address. (Exception from HRESULT: 0x800701E7)
   at ConsoleRunner.Program.Main(String[] args)

So how can I solve this?

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

No branches or pull requests

1 participant