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

Can't open the .NET bundle file (R2R). #3397

Open
wwh1004 opened this issue Feb 13, 2025 · 3 comments
Open

Can't open the .NET bundle file (R2R). #3397

wwh1004 opened this issue Feb 13, 2025 · 3 comments

Comments

@wwh1004
Copy link
Contributor

wwh1004 commented Feb 13, 2025

Same as #3197 but decompile r2r

Image

Image

@wwh1004 wwh1004 added the Bug label Feb 13, 2025
@siegfriedpammer
Copy link
Member

@cshung @eduardo-vp It looks like the ReadyToRunReader expects the file to be processed to exist on disk, which is not true for bundles. The entries of a bundle are handled in memory only and I think you may have to use PEReader.GetEntireImage() instead. Is this something you can change?

@cshung
Copy link
Contributor

cshung commented Feb 13, 2025

Thanks for the bug report @wwh1004.

@siegfriedpammer, I think you are right that we will need to change the ReadyToRunReader such that it accepts the image content from the constructor instead of reading it from file system directly.

With a hack, I am able to get ReadyToRun to work with bundles.

There will be some changes on both sides (inside the package, I need to get it to accept the content from the constructor), and outside the package, the ILSpy.ReadyToRun plugin need to get the content available for it.

I will send a PR for it when I can.

@siegfriedpammer
Copy link
Member

Thank you for your fast response!

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

No branches or pull requests

3 participants