jbevain / cecil

Cecil is a library to inspect, modify and create .NET programs and libraries.
MIT License
2.71k stars 619 forks source link

it will throw exception about failed to resolve TupleElementNamesAttribute:.ctor sometime #937

Open windyuuy opened 5 months ago

windyuuy commented 5 months ago

It will throw exception about failed to resolve TupleElementNamesAttribute:.ctor sometime

The key "parameter.token" is updated, but the dictionary "CustomAttributes" not, thus get CustomAttribute by parameter.token as key will return wrong value. When it LookupToken will throw exception for unmatched module of wrong CustomAttribute.

image image