fixbug: fix exception about failed to resolve TupleElementNamesAttribute:.ctor sometime #936

Open
windyuuy wants to merge 1 commit from windyuuy/feature/fixbugs into master
windyuuy commented 2024-03-15 05:37:34 -05:00 (Migrated from github.com)

fix #937
fixbug: fix 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

fix #937 fixbug: fix 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/048e9501-c9c8-4be4-9446-fc7fa7d38789) ![image](https://github.com/jbevain/cecil/assets/9778097/b58f1bfa-0786-47ef-8745-eab84d291f41)
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'windyuuy/feature/fixbugs:windyuuy/feature/fixbugs'
git switch 'windyuuy/feature/fixbugs'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff 'windyuuy/feature/fixbugs'
git switch 'windyuuy/feature/fixbugs'
git rebase 'master'
git switch 'master'
git merge --ff-only 'windyuuy/feature/fixbugs'
git switch 'windyuuy/feature/fixbugs'
git rebase 'master'
git switch 'master'
git merge --no-ff 'windyuuy/feature/fixbugs'
git switch 'master'
git merge --squash 'windyuuy/feature/fixbugs'
git switch 'master'
git merge --ff-only 'windyuuy/feature/fixbugs'
git switch 'master'
git merge 'windyuuy/feature/fixbugs'
git push origin 'master'
Sign in to join this conversation.
No reviewers
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!936
No description provided.