Hi~

I’ve been using Mono-cecil to inject sets of IL Codes which store
parameters or return value of target method.

So I mainly inject IL Codes at two points in a method. Then I got
wrong IL Code’s Address such as

Leave.s L_ffffffbc after IL injection.

I had a look into Injected code output. Most of codes look just fine
except only one Leaves.s opcode has wrong

address as operand. That address does not exist in a code list too.

What’s interesting is that I got correct output IL Codes with target
method that has less than three parameters but

I got wrong IL Code with a method which has more than three
parameters.

I used this version of mono-cecil jbevain-cecil-0.9.3-49-g0ce348e.

Could you give me any ideas to figure this out?

Example:
http://leeways.tistory.com/attachment/[email protected]
Document:
http://leeways.tistory.com/attachment/[email protected]

Thanks,
DY

-- 
--
mono-cecil

Reply via email to