You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ModuleDefinition.ReadModule hangs permanently when attempting to read the module from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):
Nice find! This occurs because an entry in the assembly metadata TypeRef table of Test.dll is self-referencing. Specifically, entry 11 - DebuggingModes has a ResolutionScope of 0x2F (itself).
Cecil does not do any handling of recursive references and will enter an infinite loop while following the references.
Activity
rowandh commentedon Jan 29, 2019
Nice find! This occurs because an entry in the assembly metadata
TypeReftable of Test.dll is self-referencing. Specifically, entry 11 -DebuggingModeshas a ResolutionScope of 0x2F (itself).Cecil does not do any handling of recursive references and will enter an infinite loop while following the references.
jbevain commentedon Jan 31, 2019
Thanks for reporting this.
Fix reading of obfuscated self referencing typeref row. Fix jbevain#555