Skip to content

Incorrect parsing of table with no rows #17

@befoulad

Description

@befoulad

When parsing empty TypeDef , MethodDef, etc, the create_table_reference method returns immediately after logging a message and does not read field bytes. This cause -2 or -4 bytes offset misalignment in subsequent table parings and results in corrupted data. An example assembly file is attached to demonstrate this issue. The Assembly table data is corrupted including the hash algorithm and version data.

System.Runtime.Numerics.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions