Regression in 0.11.3 -- NRE from ILProcessor.InsertBefore() #697
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Simple repro attached
Cecil.11.3.issue.zip
The null reference is the 7th of the 6 instructions in the method body; the initial access to the instructions through the
Collection<Instruction>type with size less than capacity decays to a direct access to the internalInstruction[]which has length equal to the capacity.FWIW, the assembly was built with an old Mono compiler, so advertises a code size of 14, hence the capacity of 7, for 6 instructions.
Fixed in #698.