Skip to content

Conversation

@xavierpinho
Copy link
Collaborator

Noticed it was crashing when processing https://www.nuget.org/packages/System.Security.Principal.Windows, although exclusively on this file:

system.security.principal.windows/5.0.0/runtimes/win/lib/netstandard1.3/System.Security.Principal.Windows.dll

Since the remaining files are OK, figured we should at least start by not crashing the entire process.

var methodHandle = (MethodDefinitionHandle)method!.MetadataToken;
sequencePoints.TryGetValue(function, out var points);
ProcessMethod(methodHandle, document, points, syntaxTree);
ProcessMethod(methodHandle, document, points, file.FileName);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

syntaxTree was unused. Replaced it with FileName for logging purposes.

@xavierpinho
Copy link
Collaborator Author

cc'ing @DavidBakerEffendi, @AndreiDreyer, since I can't add reviewers.

@DavidBakerEffendi DavidBakerEffendi merged commit 77091f6 into joernio:main Dec 16, 2024
1 check passed
@xavierpinho xavierpinho deleted the xavierp/replace-assert-with-logerror branch December 16, 2024 10:21
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