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

fix #3372 empty tree for assembly #3373

Closed
wants to merge 1 commit into from

Conversation

trivalik
Copy link

fix #3372

Problem

Loading as Zip-file works for every library and should be the last resort. The regression was in commit 65e30c0.

Solution

  • in case zip loader was successful, we have to check before proceed with PEFile

@@ -353,7 +353,7 @@ async Task<LoadResult> LoadAsync(Task<Stream?>? streamTask)
}
}

if (result?.IsSuccess != true)
if (result?.IsSuccess != true || result.Package?.Kind == LoadedPackage.PackageKind.Zip) // workaround to check this before zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we cannot do this, because LoadedAssembly should not need to know about any format other than PE.

@siegfriedpammer
Copy link
Member

Thank you for investigating the bug and providing a fix, anyway.

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.

Loading special library lead to empty tree for this assembly
2 participants