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

Open
opened 2024-03-15 05:47:51 -05:00 by windyuuy · 0 comments
windyuuy commented 2024-03-15 05:47:51 -05:00 (Migrated from github.com)

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

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](https://github.com/jbevain/cecil/assets/9778097/5f44dab9-8eaf-41ee-bac5-b2c8b2c0e149) ![image](https://github.com/jbevain/cecil/assets/9778097/ccfe3675-1b81-477b-83b0-7758cde828dc)
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil#937
No description provided.