[Ikvm-developers] Verifier patch for derived interfaces
Brought to you by:
jfrijters
|
From: Alan M. <Ala...@cr...> - 2003-08-28 22:15:25
|
Hello, I have isolated a bug in the ikvm verifier and I am attaching a possible patch. The problem arises when trying to determine the common base class for local variable when the local variable is an interface. The attached sample code demonstrates the pattern that causes the problem. Currently, in InstructionState.FindCommonBaseTypeHelper, there are checks for one interface being the parent of another interface. But there are no checks if the two interfaces are both derived from a common interface. The attached patch should fix this problem. Alan ----- Alan Macek R&D - Crystal Decisions |