Skip to content

ModuleDefinition.ReadModule hangs permanently #555

Closed

Description

@Metalnem

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):

ModuleDefinition.ReadModule(path, new ReaderParameters(ReadingMode.Immediate));

Found via SharpFuzz.

Activity

  1. rowandh commented on Jan 29, 2019

    @rowandh

    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.

  2. jbevain commented on Jan 31, 2019

    @jbevain
    Owner

    Thanks for reporting this.

  3. added a commit that references this issue on Sep 26, 2024
    34b49b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions