microsoft / microsoft/CLRInstrumentationEngine

Assembly injector needs to convert exception tokens for SEH clauses

Open
#35 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
102
Forks
52
Avg merge
13h 11m
Merged PRs (30d)
6

Description

This seems to be an error - while copying SEH clauses - tokens are only converted and copied for filters, not for regular catch statements:

https://github.com/Microsoft/CLRInstrumentationEngine/blob/99c628e15018fcd445c5e101873818e4279a216f/src/InstrumentationEngine/AssemblyInjector.cpp#L713-L720

This causes a failure when you trying to inject an assembly with try{}catch statement into another assembly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/InstrumentationEngine/AssemblyInjector.cpp around lines 713-720, where SEH clauses are copied. Compare the handling of filters with regular catch statements and trace the token conversion path. Done means an assembly containing a try/catch statement can be injected into another assembly without this token-related failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.