Washi1337 / AsmResolver

A library for creating, reading and editing PE files and .NET modules.
https://docs.washi.dev/asmresolver/
MIT License
826 stars 125 forks source link

Address several issues with reading specially crafted .NET metadata #557

Closed ElektroKill closed 1 month ago

ElektroKill commented 1 month ago

This PR fixes a couple of issues with reading specially crafted files that abuse implementation quirks of the CLR metadata reader.

The following quirks were addressed (sample files can be found in the PR):

All the above-mentioned quirks were addressed in the PR and have accompanying tests.