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

Various CIL body parsing hardening improvements #361

Merged
merged 8 commits into from
Oct 8, 2022

Conversation

Washi1337
Copy link
Owner

@Washi1337 Washi1337 commented Oct 5, 2022

Includes:

  • Individual components in a CIL body are now read (and error handled) separately.
  • CilMethodBody.FromReader now uses the reader context's error listener to report parser errors.
  • Bugfix: CilMaxStackCalculator now respects raw branch operand deltas.
  • Bugfix: CilOperandBuilder now supports writing the raw string metadata tokens produced by CilDisassembler if it wasn't resolved before.
  • Bugfix: DynamicMethodDefinition now correctly pulls code from underlying DynamicILInfo object if necessary.
  • Add OriginalMetadataTokenProvider class.

@Washi1337 Washi1337 added bug enhancement dotnet Issues related to AsmResolver.DotNet labels Oct 5, 2022
@Washi1337 Washi1337 added this to the 5.0.0 milestone Oct 5, 2022
@Washi1337 Washi1337 merged commit de318d8 into development Oct 8, 2022
@Washi1337 Washi1337 deleted the feature/cil-body-parsing-hardening branch October 8, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dotnet Issues related to AsmResolver.DotNet enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant